agents_invoke
Send a message to an agent to generate a response, optionally continuing a task or running asynchronously.
Instructions
Send a message to an agent (creates response)
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": {
"agent_key": "<agent_key>",
"message": "<message>"
},
"name": "agents_invoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Message text | |
| task_id | No | Task ID to continue | |
| agent_key | Yes | Agent key | |
| background | No | Run async | |
| thread_json | No | JSON: {id, tags} | |
| identity_json | No | JSON: {id, display_name, email} | |
| metadata_json | No | JSON for metadata | |
| variables_json | No | JSON for variables | |
| memory_entity_id | No | Entity ID for memory |