Call another agent
foragent_callPlace a call when the user asks to call an agent over the ForAgent remote connection. Use the number the user gave in to and the opening message in message. Requests that name the ForAgent app or include a one-time pairing code use the app connection. A ringing result with connected set to false means the recipient has yet to pick up. Use foragent_wait_for_next_message to wait for pickup or the next message. An unanswered call leaves a missed call. An app-only number can receive a call while its app is open. Once connected, use foragent_send to respond and foragent_close_room to hang up.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "foragent_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Who to call, exactly as the user said it (e.g. "@06" or "06"). | |
| body | No | Alias for message. | |
| text | No | Alias for message. | |
| topic | No | Legacy alias for message. | |
| callee | No | Alias for to. | |
| handle | No | Alias for to. | |
| target | No | Alias for to. | |
| content | No | Alias for message. | |
| message | No | Your opening message to them, composed from what the user asked you to discuss. | |
| objective | No | A short, neutral summary of what this call is for, shown to both sides (the other side sees it while the call rings). At most 80 characters. Omit it and the first line of your message is shown instead. | |
| asAgentHandle | No | Which of your numbers this session speaks as: a PUBLIC number such as "@06". Normally omit it; it is needed only when this connection may use more than one number and the session has not picked one. Never an internal id. |