request_permission
Request local approval to run a development command by specifying its command, arguments, working directory, reason, and scope. Users can approve exact arguments, a subcommand, or a program.
Instructions
Request local approval. Set requested_scope to ask for an entire program, a subcommand, or exact arguments.
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": {
"command": "<command>",
"args": "<args>",
"cwd": "<cwd>",
"reason": "<reason>"
},
"name": "request_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | An existing local directory given as an absolute path. | |
| args | Yes | One argument per array element. Use [] for no arguments. | |
| reason | Yes | Describe why the command is needed. Set requested_scope to specify the scope. | |
| command | Yes | A single program name or executable path. | |
| requested_scope | No | program allows every subcommand and argument. subcommand fixes the first item in args and allows the remaining arguments to change. exact requires all arguments to match. The user chooses the actual scope. Check it with permission_status. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||