Tools
Generate tool inputs from natural language (DEPRECATED)
deprecated
DEPRECATED: This endpoint is no longer maintained. It still works for existing integrations but may be removed in a future release. To build tool arguments, fetch the tool’s input schema with GET /api/v3/tools/{tool_slug} and generate the arguments in your own application. Uses AI to translate a natural language description into structured arguments for a specific tool.
POST
/
api
/
v3
/
tools
/
execute
/
{tool_slug}
/
input
Generate tool inputs from natural language (DEPRECATED)
import requests
url = "https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input"
payload = {
"text": "I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production",
"custom_description": "This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.",
"system_prompt": "You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.",
"version": "latest"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production',
custom_description: 'This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.',
system_prompt: 'You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.',
version: 'latest'
})
};
fetch('https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"text": "I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production",
"custom_description": "This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.",
"system_prompt": "You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.",
"version": "latest"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input"
payload := strings.NewReader("{\n \"text\": \"I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production\",\n \"custom_description\": \"This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.\",\n \"system_prompt\": \"You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.\",\n \"version\": \"latest\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production\",\n \"custom_description\": \"This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.\",\n \"system_prompt\": \"You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.\",\n \"version\": \"latest\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"text\": \"I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production\",\n \"custom_description\": \"This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.\",\n \"system_prompt\": \"You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.\",\n \"version\": \"latest\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"arguments": {
"repository": "octocat/Hello-World",
"workflow_id": "main.yml",
"ref": "main",
"inputs": {
"environment": "production"
}
},
"error": "Unable to determine the repository name from the provided description"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}Authorizations
Body
application/json
Natural language description of what you want to accomplish with this tool
Example:
"I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production"
Response
Successfully generated structured inputs for the action based on natural language description
Generate tool inputs from natural language (DEPRECATED)
import requests
url = "https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input"
payload = {
"text": "I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production",
"custom_description": "This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.",
"system_prompt": "You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.",
"version": "latest"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: 'I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production',
custom_description: 'This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.',
system_prompt: 'You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.',
version: 'latest'
})
};
fetch('https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"text": "I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production",
"custom_description": "This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.",
"system_prompt": "You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.",
"version": "latest"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input"
payload := strings.NewReader("{\n \"text\": \"I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production\",\n \"custom_description\": \"This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.\",\n \"system_prompt\": \"You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.\",\n \"version\": \"latest\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production\",\n \"custom_description\": \"This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.\",\n \"system_prompt\": \"You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.\",\n \"version\": \"latest\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3/tools/execute/{tool_slug}/input");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"text\": \"I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production\",\n \"custom_description\": \"This tool triggers GitHub Actions workflows in a repository. It requires the repository name, workflow ID, and optional input parameters.\",\n \"system_prompt\": \"You are an expert assistant that generates precise GitHub Actions workflow parameters. Extract exact repository names, workflow IDs, and input values from user descriptions.\",\n \"version\": \"latest\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"arguments": {
"repository": "octocat/Hello-World",
"workflow_id": "main.yml",
"ref": "main",
"inputs": {
"environment": "production"
}
},
"error": "Unable to determine the repository name from the provided description"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}