opencode_permission
Resolve pending OpenCode permission requests by replying once, always, or reject, and resume the same turn until completion or further input.
Instructions
Decide a pending OpenCode permission (state=needs_agent_input, kind=permission) and keep blocking until the turn completes, errors, or needs input again.
reply: exactly one of 'once' (allow this call), 'always' (allow this pattern for the session), 'reject'. Decide as supervisor: allow normal actions necessary for the delegated task; reject destructive or out-of-scope requests.The decision is posted to OpenCode and the SAME turn resumes (the prompt is never resubmitted).
If the permission is no longer pending, an error is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reply | Yes | ||
| timeout | No | ||
| directory | Yes | ||
| session_id | Yes | ||
| permission_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||