clarify
Resolve a clarification request by submitting the replay token and the zero-based index of the user's chosen option.
Instructions
Replay dispatcher for clarification-needed responses. When a tool returns { kind: 'clarification-needed' }, present the question and options to the user, then call this tool with the replayToken from that response and the zero-based index of the option the user selected. The server resumes the original tool call with the disambiguation applied and returns the final result envelope. Tokens are single-use and expire after 5 minutes — call this tool promptly after the user responds. Passing an expired or unknown token returns a NotFound error. Passing a choice index outside the valid range returns an InvalidInput error. Example: clarify({ replayToken: "tok_abc", choice: 0 })
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": {
"replayToken": "<replayToken>",
"choice": "<choice>"
},
"name": "clarify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choice | Yes | Zero-based index of the option the user selected (matches ClarificationOption.index). | |
| replayToken | Yes | Opaque token from the clarification-needed envelope's replayToken field. |