reject
Declines a pending tool call and waits for the turn to complete, returning an approval request or question that needs a response.
Instructions
Reject this tool call (reject_once). Codex and Claude Code continue the turn; Grok and OpenCode end it as cancelled. Blocks until the turn is done, needs an approval or asks a question; the server sets no time limit. If your client times out, the turn keeps running and the connection stays: call status for the state and output for the reply instead of sending the task again. Returns "approval_needed" with an approval to answer via approve / allow / reject, or "question_needed" with a question to answer via answer.
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": {
"session": "<session>",
"approval_id": "<approval_id>"
},
"name": "reject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the result (default true). false returns right after sending. | |
| session | Yes | Session id returned by open | |
| approval_id | Yes | approval_id from the approval_needed result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| status | Yes | ||
| outcome | No | ||
| turn_id | No | ||
| approval | No | ||
| question | No |