ask
Send a question to a peer agent and wait synchronously for their answer. Specify a recipient CID and timeout to get a response; the peer must be actively listening.
Instructions
Send a question to a peer and wait synchronously for their answer.
Mechanics: posts a whisper with kind='question'; blocks until target
posts a whisper/answer back to me, or timeout_s elapses. Use peers()
to find available cids; 8-char prefix accepted.
Note: requires the target to be in a wait() loop or actively calling
inbox()+respond(). If they're idle, you'll just timeout.
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": {
"to_cid": "<to_cid>",
"question": "<question>"
},
"name": "ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_cid | Yes | ||
| question | Yes | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |