invoke_agent
Execute an AI agent by providing its ID and input to process tasks within the AnythingLLM workspace.
Instructions
Invoke an agent with input
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>",
"input": "<input>"
},
"name": "invoke_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ID of the agent to invoke | |
| input | Yes | Input to send to the agent |