Ask the person in the 3D view to allow a tool
doctor_permitHandles permission prompts for portal tools inside the 3D view, then returns an allow or deny JSON response so users can approve access without leaving the view.
Instructions
For a doctor run without a keyboard (Claude Code's --permission-prompt-tool). When the client needs permission for one of this portal's tools, this puts the question to the person IN the 3D view, where they are, and waits for their answer there: nobody has to leave the view for a terminal or a settings page. A tool that only reads is asked about once per visit; one that changes something is asked about every time, with what it was given. Only the person whose token this is can allow, and allowing a tool here widens nothing: the tool still passes its own checks. The answer is the JSON the client expects: behavior allow or deny.
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": {
"tool_name": "<tool_name>"
},
"name": "doctor_permit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | what it would be called with | |
| tool_name | Yes | the tool that needs permission | |
| tool_use_id | No |