Execute a skill tool
POST/api/v2/agent/:agentCode/skill/:skillCode/execute/:toolCode
Runs one skill in isolation: no planning, prompt, agent model or conversational pipeline is executed. The skill is validated against the skills declared in the resolved agent version. The request body is optional and must use the same JSON shape the LLM builds for the skill's tool call, which you can discover with the skill schema endpoint.
Request
Path Parameters
Code of the agent that declares the skill.
Code of the skill to execute.
Code of the specific tool within the skill to execute.
Query Parameters
Optional personal connection to authenticate the skill with. Only valid for skills configured with a personal connection; when omitted the caller's default connection for the connector is used.
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
Optional tool-call arguments as a JSON object.
any
Body
Optional tool-call arguments as a JSON object.
any
Body
Optional tool-call arguments as a JSON object.
any
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Returns the skill execution result, or the pending actions the caller must complete before it can run.
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
- ConnectionPendingAction
- ToolApprovalPendingAction
- UserChoicePendingAction
Array [
Array [
]
]
]
pendingActions
object[]
nullable
oneOf
arguments
object
nullable
questions
object[]
nullable
options
object[]
nullable
{
"content": "string",
"pendingActions": [
{},
{},
{}
]
}
- Schema
- Example (from schema)
Schema
Array [
- ConnectionPendingAction
- ToolApprovalPendingAction
- UserChoicePendingAction
Array [
Array [
]
]
]
pendingActions
object[]
nullable
oneOf
arguments
object
nullable
questions
object[]
nullable
options
object[]
nullable
{
"content": "string",
"pendingActions": [
{},
{},
{}
]
}
- Schema
- Example (from schema)
Schema
Array [
- ConnectionPendingAction
- ToolApprovalPendingAction
- UserChoicePendingAction
Array [
Array [
]
]
]
pendingActions
object[]
nullable
oneOf
arguments
object
nullable
questions
object[]
nullable
options
object[]
nullable
{
"content": "string",
"pendingActions": [
{},
{},
{}
]
}
If the skill does not use a personal connection, the connection does not belong to the connector the skill requires, or the skill runs on the model provider side and cannot be executed on its own.
- application/json
- Schema
- Example (from schema)
Schema
errors
object
nullable
{
"message": "string",
"errors": {}
}
The user is unauthorized or the session expired
The user does not have permission
If the skill code or tool code does not exist in the resolved agent version, or the connection is not a usable connection of the caller.
There was an unexpected error