Assistant
Execute Tool
Execute a tool on behalf of the assistant and continue the conversation with the result. Note that more permissions may be checked depending on the tool being executed.
post/api/assistant/tool/{name}
Path parameters
namestring required
Name of the tool to execute
Request body
ModelToolRequest required
Response
AI assistant response messages after tool execution
Example response
[
{
"id": "c3d44fb8-3bc2-46e2-a7d2-8a8983556d1a",
"role": "user",
"stop_reason": "user_request",
"stop_sequence": "end_turn",
"usage": {
"credits": 1,
"input_tokens": 5,
"output_tokens": 10
}
}
]