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 })
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. |