answer
Respond to a pi agent's question to unblock it. Use the requestId from status and provide the chosen value.
Instructions
Answer a question raised by a pi agent. Get requestId from status. Only pi extensions can ask, so questions appear only for delegates spawned with extensions: true; the MCP adapter's tool-approval and elicitation prompts are the usual source. A delegate waiting on one is blocked until you answer it.
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": {
"sessionId": "<sessionId>",
"requestId": "<requestId>",
"value": "<value>"
},
"name": "answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Chosen option, text, or boolean for a confirm | |
| requestId | Yes | ||
| sessionId | Yes |