callAgent
Send messages to a target agent via generate or stream interactions. Proxies requests for multi-server environments with agent name conflicts.
Instructions
Proxies requests to a target agent using appropriate client libraries. Supports generate and stream interactions. Use server:agentId format for multi-server environments with agent name conflicts.
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": {
"targetAgentId": "<targetAgentId>",
"interactionType": "<interactionType>",
"messages": "<messages>"
},
"name": "callAgent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetAgentId | Yes | ||
| interactionType | Yes | ||
| messages | Yes | ||
| serverUrl | No | ||
| threadId | No | ||
| resourceId | No | ||
| agentOptions | No |