Skip to content

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.

Capabilityexecution.sandbox_policy
AreaRun, test and tasks
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
readarray of stringFolders or files the process may read; relative paths are taken below the workspace root.
writearray of stringFolders 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.
hostsarray of stringDestinations 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.

Terminal window
ferris-idea call ~/my-project sandbox_policy
Input 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"
}
}
}
}