session_respond
Answer Claude Code's in-session questions by selecting an option number or using navigation keys, allowing you to steer interactive sessions.
Instructions
Answer an on-screen prompt when state is awaiting_input.
choice is an option number ("1", "2", ...) or a navigation key: up,
down, enter, escape. Read the question first via session_status.
Launch dialogs (workspace trust, bypass-permissions, effort) are handled automatically — this is only for questions Claude itself asks.
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": {
"name": "<name>",
"choice": "<choice>"
},
"name": "session_respond"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| choice | Yes |