sandbox_policy
MCP tools › Run, test and tasks
Check a sandbox policy for agent processes without starting anything: read and write roots (relative to the workspace) and hosts (port 443 by default). Without arguments, the default policy (workspace as the only write root, no network). Returns valid, problems, the resolved policy, this machine's mechanism and whether it is available, the fixed_locations every sandboxed process may read, and the macOS Seatbelt profile. Agents can never run unsandboxed. Needs no right; changes nothing.
| Capability | execution.sandbox_policy |
|---|---|
| Area | Run, test and tasks |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
read | array of string | Folders or files the process may read; relative paths are taken below the workspace root. |
write | array of string | Folders or files the process may read and change; relative paths are taken below the workspace root. Default (when no argument is given): the workspace root. |
hosts | array of string | Destinations the process may reach: name, name:port, *.domain[:port], an IPv4
address or [IPv6], port 443 by default. |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project sandbox_policyInput schema as JSON
{ "type": "object", "additionalProperties": false, "properties": { "read": { "description": "Folders or files the process may read; relative paths are taken below the workspace root.", "type": [ "array", "null" ], "items": { "type": "string" } }, "write": { "description": "Folders or files the process may read and change; relative paths are taken below the\nworkspace root. Default (when no argument is given): the workspace root.", "type": [ "array", "null" ], "items": { "type": "string" } }, "hosts": { "description": "Destinations the process may reach: `name`, `name:port`, `*.domain[:port]`, an IPv4\naddress or `[IPv6]`, port 443 by default.", "type": [ "array", "null" ], "items": { "type": "string" } } }}