Answer an agent's question
answer_promptSubmit answers to a pending agent prompt fetched via get_pending, mapping question IDs to response strings. Resolve blockages by sending typed text or chosen option labels so agents can continue their tasks.
Instructions
Answer a pending question from get_pending. answers maps question id → list of strings, e.g. {"build":["Debug"]}. For options:null questions send typed text; for the "choice" id send each picked label (without the " (…)" note). Expired requests give 409 — call get_pending again.
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": "<agent>",
"requestId": "<requestId>",
"answers": "<answers>"
},
"name": "answer_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent ID or agent name (case-insensitive), as list_agents shows it. | |
| answers | Yes | ||
| requestId | Yes | The prompt's requestId from get_pending, unchanged. |