Cloud sandboxes for AI agents: run code, files, previews, browsers, Linux desktops, Android.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Point a customer hostname at a public sandbox (give sandbox_id, and port if the app is not on 8000), or claim a wildcard like *.example.com for the whole org. Nothing routes until DNS is in place: the reply carries the CNAME record that has to be created at the domain's registrar (or, where a CNAME is impossible, an A record plus the TXT record in txt_record), which is a step only a human can do — hand the record over and check back with list_domains. The sandbox must be publicly reachable, since a custom host carries no preview token.
hostname, e.g. app.example.com, or *.example.com for an org wildcard
the sandbox port behind the host (default 8000)
the sandbox to serve it (omit for a wildcard)
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http pilldrops https://pilldrops.com/mcp
Point a customer hostname at a public sandbox (give sandbox_id, and port if the app is not on 8000), or claim a wildcard like *.example.com for the whole org. Nothing routes until DNS is in place: the reply carries the CNAME record that has to be created at the domain's registrar (or, where a CNAME is impossible, an A record plus the TXT record in txt_record), which is a step only a human can do — hand the record over and check back with list_domains. The sandbox must be publicly reachable, since a custom host carries no preview token.
| Argument | Type | Description |
|---|---|---|
| host* | string | hostname, e.g. app.example.com, or *.example.com for an org wildcard |
| port | integer | the sandbox port behind the host (default 8000) |
| sandbox_id | string | the sandbox to serve it (omit for a wildcard) |
{
"type": "object",
"required": [
"host"
],
"properties": {
"host": {
"type": "string",
"description": "hostname, e.g. app.example.com, or *.example.com for an org wildcard"
},
"port": {
"type": "integer",
"description": "the sandbox port behind the host (default 8000)"
},
"sandbox_id": {
"type": "string",
"description": "the sandbox to serve it (omit for a wildcard)"
}
}
}Give a running agent a task. Returns a turn at once and does not wait for it: poll agent_get_turn until its state is final. Resumes a paused agent first, so it can take seconds. mode decides what the agent may do alone: supervised asks before anything, guided before risky actions, autonomous never. A guided or supervised turn can stop on an approval, see agent_list_approvals.
| Argument | Type | Description |
|---|---|---|
| ref | string | branch, tag or SHA to clone with repo |
| mode | string | supervised, guided or autonomous; default the agent's own |
| repo | string | with thread new: a git URL the chat works in, cloned on its own branch with the sandbox's GIT_TOKEN |
| thread | string | latest (default), new, or a thread id |
| message* | string | what to do |
| priority | boolean | jump the queue |
| sandbox_id* | string | sandbox id of an agent template |
{
"type": "object",
"required": [
"sandbox_id",
"message"
],
"properties": {
"ref": {
"type": "string",
"description": "branch, tag or SHA to clone with repo"
},
"mode": {
"type": "string",
"description": "supervised, guided or autonomous; default the agent's own"
},
"repo": {
"type": "string",
"description": "with thread new: a git URL the chat works in, cloned on its own branch with the sandbox's GIT_TOKEN"
},
"thread": {
"type": "string",
"description": "latest (default), new, or a thread id"
},
"message": {
"type": "string",
"description": "what to do"
},
"priority": {
"type": "boolean",
"description": "jump the queue"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
}
}
}Allow or deny an action an agent is waiting on. Read what it asks in agent_list_approvals first.
| Argument | Type | Description |
|---|---|---|
| decision* | string | allow or deny |
| sandbox_id* | string | sandbox id of an agent template |
| approval_id* | string | approval id |
{
"type": "object",
"required": [
"sandbox_id",
"approval_id",
"decision"
],
"properties": {
"decision": {
"type": "string",
"description": "allow or deny"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
},
"approval_id": {
"type": "string",
"description": "approval id"
}
}
}One turn in full: its state, reply, usage and any error. Poll it after agent_ask.
| Argument | Type | Description |
|---|---|---|
| turn_id* | string | turn id from agent_ask or agent_list_turns |
| sandbox_id* | string | sandbox id of an agent template |
{
"type": "object",
"required": [
"sandbox_id",
"turn_id"
],
"properties": {
"turn_id": {
"type": "string",
"description": "turn id from agent_ask or agent_list_turns"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
}
}
}Stop a running turn. grace_seconds lets the agent stop politely before it is killed.
| Argument | Type | Description |
|---|---|---|
| turn_id* | string | turn id from agent_ask or agent_list_turns |
| sandbox_id* | string | sandbox id of an agent template |
| grace_seconds | number | seconds to stop politely |
{
"type": "object",
"required": [
"sandbox_id",
"turn_id"
],
"properties": {
"turn_id": {
"type": "string",
"description": "turn id from agent_ask or agent_list_turns"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
},
"grace_seconds": {
"type": "number",
"description": "seconds to stop politely"
}
}
}Actions an agent is waiting on a decision for. Decide each with agent_decide_approval.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id of an agent template |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
}
}
}An agent's turns with the state, mode and thread of each.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id of an agent template |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
}
}
}For a chat started with repo: commit its changes, push its branch and open a GitHub pull request with the sandbox's GIT_TOKEN. Returns its url. Wait for the chat's turn to finish first.
| Argument | Type | Description |
|---|---|---|
| body | string | pull request description |
| draft | boolean | open it as a draft |
| title | string | title and commit message; default the chat's first message |
| chat_id* | string | the turn id agent_ask returned when it started the chat |
| sandbox_id* | string | sandbox id of an agent template |
{
"type": "object",
"required": [
"sandbox_id",
"chat_id"
],
"properties": {
"body": {
"type": "string",
"description": "pull request description"
},
"draft": {
"type": "boolean",
"description": "open it as a draft"
},
"title": {
"type": "string",
"description": "title and commit message; default the chat's first message"
},
"chat_id": {
"type": "string",
"description": "the turn id agent_ask returned when it started the chat"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
}
}
}What an agent is doing now: whether it is ready, its current turn and its queue.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id of an agent template |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id of an agent template"
}
}
}Start a durable backup of a sandbox to the platform's object store. The sandbox is frozen only for the capture and keeps running; the upload then continues in the background, so this returns a backup whose status is pending and which can take minutes to become ready — poll list_saved_states. Unlike a checkpoint, a backup survives the sandbox and the node. Use it before destroying something you may need back, or on a long-lived workstation. Answers 501 when the deployment has no object store configured.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Run a command in a sandbox on a schedule. With agent_mode the command is a prompt to the sandbox's agent instead of a shell command.
| Argument | Type | Description |
|---|---|---|
| name | string | label for the job |
| command* | string | command to run, or the prompt with agent_mode |
| schedule* | string | cron expression, e.g. 0 2 * * * |
| timezone | string | IANA zone the schedule is read in; default UTC |
| agent_mode | string | guided or autonomous |
| sandbox_id* | string | sandbox id, not its name |
{
"type": "object",
"required": [
"sandbox_id",
"schedule",
"command"
],
"properties": {
"name": {
"type": "string",
"description": "label for the job"
},
"command": {
"type": "string",
"description": "command to run, or the prompt with agent_mode"
},
"schedule": {
"type": "string",
"description": "cron expression, e.g. 0 2 * * *"
},
"timezone": {
"type": "string",
"description": "IANA zone the schedule is read in; default UTC"
},
"agent_mode": {
"type": "string",
"description": "guided or autonomous"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, not its name"
}
}
}Deploy a function: a command that serves HTTP on a port, scaled from zero by requests to its URL.
| Argument | Type | Description |
|---|---|---|
| env | object | environment variables by name |
| name* | string | function name |
| port | integer | port the command listens on |
| vcpu | integer | vCPUs |
| files | array | source files to include |
| start* | string | command that serves the function |
| public | boolean | invokable without a key at /v1/public/functions/{public_id}/invoke |
| template | string | template id; default the server's first |
| memory_mb | integer | memory in MB |
| idle_timeout | integer | seconds without an invoke before the last replica stops; 0 keeps one warm |
| max_replicas | integer | burst ceiling |
| replica_concurrency | integer | requests one replica serves at once, 1 to 100 |
{
"type": "object",
"required": [
"name",
"start"
],
"properties": {
"env": {
"type": "object",
"description": "environment variables by name"
},
"name": {
"type": "string",
"description": "function name"
},
"port": {
"type": "integer",
"description": "port the command listens on"
},
"vcpu": {
"type": "integer",
"description": "vCPUs"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"description": "path in the function"
},
"content": {
"type": "string",
"description": "file text"
}
}
},
"description": "source files to include"
},
"start": {
"type": "string",
"description": "command that serves the function"
},
"public": {
"type": "boolean",
"description": "invokable without a key at /v1/public/functions/{public_id}/invoke"
},
"template": {
"type": "string",
"description": "template id; default the server's first"
},
"memory_mb": {
"type": "integer",
"description": "memory in MB"
},
"idle_timeout": {
"type": "integer",
"description": "seconds without an invoke before the last replica stops; 0 keeps one warm"
},
"max_replicas": {
"type": "integer",
"description": "burst ceiling"
},
"replica_concurrency": {
"type": "integer",
"description": "requests one replica serves at once, 1 to 100"
}
}
}Create a project. The plan is stored as given.
| Argument | Type | Description |
|---|---|---|
| name* | string | project name |
| plan | string | the project's plan |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "project name"
},
"plan": {
"type": "string",
"description": "the project's plan"
}
}
}Create an isolated cloud sandbox. Returns {id, status, url?}. For app servers pass start (long-lived command) and ports — the app MUST listen on the injected $PORT env var, and the returned url is a public preview. Destroy sandboxes when done — a running sandbox holds a concurrency slot and keeps metering.
| Argument | Type | Description |
|---|---|---|
| env | array | environment variables, KEY=VAL |
| slug | string | DNS label this sandbox is hosted and resolved under; also its name on a network tag (<slug>.pd) |
| vcpu | integer | vCPUs (0 = template default) |
| image | string | custom docker image instead of a template |
| ports | array | preview ports (app must bind $PORT) |
| start | string | long-lived app/server command; makes the sandbox serve a preview URL |
| public | boolean | make the preview URL reachable without a token (shareable link); default false = private |
| runtime | string | pin isolation runtime: firecracker | docker (omit = auto) |
| volumes | array | standalone volumes to attach (see create_volume) |
| networks | array | opt-in network tags. Sandboxes cannot reach each other by default; two in the same org on the same node reach each other only if they share a tag, and resolve each other as <slug>.pd |
| template | string | template id (see list_templates); default python-3.11 |
| memory_mb | integer | memory MB (0 = template default) |
| storage_mb | integer | disk MB (0 = template default) |
| secret_refs | array | vault secrets (see list_secrets) to put in the sandbox's environment by name |
| idle_seconds | integer | idle auto-pause; -1 = never pause (always-on servers) |
| proxied_secrets | array | vault secrets the sandbox may use but never sees: it gets NAME=pd-proxied and NAME_PROXY_URL, and the node adds the secret to calls made through that URL to host. Point the SDK's base URL at it, e.g. OPENAI_BASE_URL=$OPENAI_API_KEY_PROXY_URL/v1 |
| timeout_seconds | integer | sandbox lifetime (0 = plan default) |
{
"type": "object",
"properties": {
"env": {
"type": "array",
"items": {
"type": "string"
},
"description": "environment variables, KEY=VAL"
},
"slug": {
"type": "string",
"description": "DNS label this sandbox is hosted and resolved under; also its name on a network tag (<slug>.pd)"
},
"vcpu": {
"type": "integer",
"description": "vCPUs (0 = template default)"
},
"image": {
"type": "string",
"description": "custom docker image instead of a template"
},
"ports": {
"type": "array",
"items": {
"type": "integer"
},
"description": "preview ports (app must bind $PORT)"
},
"start": {
"type": "string",
"description": "long-lived app/server command; makes the sandbox serve a preview URL"
},
"public": {
"type": "boolean",
"description": "make the preview URL reachable without a token (shareable link); default false = private"
},
"runtime": {
"type": "string",
"description": "pin isolation runtime: firecracker | docker (omit = auto)"
},
"volumes": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"path"
],
"properties": {
"id": {
"type": "string",
"description": "volume id"
},
"path": {
"type": "string",
"description": "where to mount it, e.g. /data"
}
}
},
"description": "standalone volumes to attach (see create_volume)"
},
"networks": {
"type": "array",
"items": {
"type": "string"
},
"description": "opt-in network tags. Sandboxes cannot reach each other by default; two in the same org on the same node reach each other only if they share a tag, and resolve each other as <slug>.pd"
},
"template": {
"type": "string",
"description": "template id (see list_templates); default python-3.11"
},
"memory_mb": {
"type": "integer",
"description": "memory MB (0 = template default)"
},
"storage_mb": {
"type": "integer",
"description": "disk MB (0 = template default)"
},
"secret_refs": {
"type": "array",
"items": {
"type": "string"
},
"description": "vault secrets (see list_secrets) to put in the sandbox's environment by name"
},
"idle_seconds": {
"type": "integer",
"description": "idle auto-pause; -1 = never pause (always-on servers)"
},
"proxied_secrets": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"host"
],
"properties": {
"host": {
"type": "string",
"description": "the API host the secret is for, e.g. api.openai.com"
},
"name": {
"type": "string",
"description": "vault secret name"
},
"format": {
"type": "string",
"description": "value with {} for the secret (default \"Bearer {}\"; Anthropic: \"{}\")"
},
"header": {
"type": "string",
"description": "header to set (default Authorization)"
}
}
},
"description": "vault secrets the sandbox may use but never sees: it gets NAME=pd-proxied and NAME_PROXY_URL, and the node adds the secret to calls made through that URL to host. Point the SDK's base URL at it, e.g. OPENAI_BASE_URL=$OPENAI_API_KEY_PROXY_URL/v1"
},
"timeout_seconds": {
"type": "integer",
"description": "sandbox lifetime (0 = plan default)"
}
}
}Create a saved conversation thread.
| Argument | Type | Description |
|---|---|---|
| title | string | name for the thread |
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "name for the thread"
}
}
}Create a standalone volume: a disk that outlives the sandbox it is attached to. Attach it with create_sandbox's volumes [{id, path}]; destroying that sandbox releases it with its data for the next one. One sandbox holds a volume at a time, and a sandbox holding one cannot be forked, backed up or moved. Firecracker nodes only.
| Argument | Type | Description |
|---|---|---|
| name | string | a label for the volume |
| size_mb* | integer | 256 to 102400 |
{
"type": "object",
"required": [
"size_mb"
],
"properties": {
"name": {
"type": "string",
"description": "a label for the volume"
},
"size_mb": {
"type": "integer",
"description": "256 to 102400"
}
}
}Send a signed request to a URL when a sandbox in this organization starts, ends, pauses or runs into trouble. The reply holds the signing secret once; it cannot be read again.
| Argument | Type | Description |
|---|---|---|
| url* | string | https URL reachable from the internet |
| events* | array | event types to send, e.g. sandbox.created, sandbox.ended; list_webhooks names them all |
{
"type": "object",
"required": [
"url",
"events"
],
"properties": {
"url": {
"type": "string",
"description": "https URL reachable from the internet"
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"description": "event types to send, e.g. sandbox.created, sandbox.ended; list_webhooks names them all"
}
}
}Delete a scheduled job.
| Argument | Type | Description |
|---|---|---|
| id* | string | job id |
| confirm* | boolean | must be true; without it nothing happens |
{
"type": "object",
"required": [
"id",
"confirm"
],
"properties": {
"id": {
"type": "string",
"description": "job id"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
}
}
}Delete a function and its replicas.
| Argument | Type | Description |
|---|---|---|
| name* | string | function name |
| confirm* | boolean | must be true; without it nothing happens |
{
"type": "object",
"required": [
"name",
"confirm"
],
"properties": {
"name": {
"type": "string",
"description": "function name"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
}
}
}Delete a project and its run history.
| Argument | Type | Description |
|---|---|---|
| id* | string | project id |
| confirm* | boolean | must be true; without it nothing happens |
{
"type": "object",
"required": [
"id",
"confirm"
],
"properties": {
"id": {
"type": "string",
"description": "project id"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
}
}
}Delete one save point of a sandbox — a checkpoint (frees node disk, and a slot under the checkpoint cap) or a backup (frees object storage). DESTRUCTIVE and irreversible: the state is gone and nothing else holds a copy. Name exactly one of checkpoint or backup and pass confirm=true. A backup another one was deduplicated against is refused rather than silently breaking it.
| Argument | Type | Description |
|---|---|---|
| backup | string | a backup id (durable off-node copy) |
| confirm* | boolean | must be true; without it nothing happens |
| checkpoint | string | a checkpoint name (on-node save point) |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id",
"confirm"
],
"properties": {
"backup": {
"type": "string",
"description": "a backup id (durable off-node copy)"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
},
"checkpoint": {
"type": "string",
"description": "a checkpoint name (on-node save point)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Remove a secret from the org vault. Sandboxes already holding the value keep it; nothing new can be given it by name. Nobody can read the value back first, so delete one only when you are sure it is either rotated or disposable.
| Argument | Type | Description |
|---|---|---|
| name* | string | secret name (see list_secrets) |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "secret name (see list_secrets)"
}
}
}Delete a named snapshot and every version of it, org-wide. DESTRUCTIVE and irreversible, and it affects everyone in the org: sandboxes already running are unaffected, but nothing can be created from the name again. Pass confirm=true.
| Argument | Type | Description |
|---|---|---|
| name* | string | snapshot name (see list_snapshots) |
| confirm* | boolean | must be true; without it nothing happens |
{
"type": "object",
"required": [
"name",
"confirm"
],
"properties": {
"name": {
"type": "string",
"description": "snapshot name (see list_snapshots)"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
}
}
}Delete a saved thread.
| Argument | Type | Description |
|---|---|---|
| id* | string | thread id |
| confirm* | boolean | must be true; without it nothing happens |
{
"type": "object",
"required": [
"id",
"confirm"
],
"properties": {
"id": {
"type": "string",
"description": "thread id"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
}
}
}Delete a volume and everything on it. Refused while a sandbox holds it; destroy that sandbox first. There is no undo.
| Argument | Type | Description |
|---|---|---|
| volume_id* | string | volume id (see list_volumes) |
{
"type": "object",
"required": [
"volume_id"
],
"properties": {
"volume_id": {
"type": "string",
"description": "volume id (see list_volumes)"
}
}
}Delete a webhook and its signing secret.
| Argument | Type | Description |
|---|---|---|
| id* | string | webhook id |
| confirm* | boolean | must be true; without it nothing happens |
{
"type": "object",
"required": [
"id",
"confirm"
],
"properties": {
"id": {
"type": "string",
"description": "webhook id"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
}
}
}Destroy a sandbox and stop entitlements. Its record, logs and cost remain in history.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Fork a sandbox: a running copy with the same disk, memory and processes, under a new id. Use it to try something risky on a copy, run several attempts from one state, or reproduce a bug without touching the original.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Publish a sandbox port on a raw public TCP port, for anything that is not HTTP — a database, an SSH daemon, a game server. The reply carries the public host:port to connect to. The preview URL is the right answer for web apps; this is the escape hatch below it, and it carries no credential of its own, so the sandbox must be visible to the org rather than private. Plans cap how many ports one sandbox may publish.
| Argument | Type | Description |
|---|---|---|
| udp | boolean | also forward UDP (Firecracker only; default TCP only) |
| port* | integer | the port inside the sandbox to publish |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id",
"port"
],
"properties": {
"udp": {
"type": "boolean",
"description": "also forward UDP (Firecracker only; default TCP only)"
},
"port": {
"type": "integer",
"description": "the port inside the sandbox to publish"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Recent lifecycle events for the org, newest first: created/paused/resumed/destroyed and `oom` (a process was out-of-memory-killed inside a sandbox). Watch this to notice a runaway process getting reaped. Pass sandbox_id to filter to one sandbox.
| Argument | Type | Description |
|---|---|---|
| sandbox_id | string | optional: only this sandbox's events |
{
"type": "object",
"properties": {
"sandbox_id": {
"type": "string",
"description": "optional: only this sandbox's events"
}
}
}One function's configuration and URL.
| Argument | Type | Description |
|---|---|---|
| name* | string | function name |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "function name"
}
}
}A function's recent logs.
| Argument | Type | Description |
|---|---|---|
| name* | string | function name |
| limit | integer | lines to return |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "function name"
},
"limit": {
"type": "integer",
"description": "lines to return"
}
}
}Fetch recent sandbox logs (start command + service output) — the first stop when an app misbehaves or a preview 502s.
| Argument | Type | Description |
|---|---|---|
| limit | integer | max lines (default 500) |
| sandbox_id* | string | sandbox id |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "max lines (default 500)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id"
}
}
}Live CPU/memory of a sandbox — spot OOMs and busy loops.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}One project with its plan.
| Argument | Type | Description |
|---|---|---|
| id* | string | project id |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "project id"
}
}
}Inspect one sandbox: status, resources, preview url when it serves an app.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}One saved thread with its messages.
| Argument | Type | Description |
|---|---|---|
| id* | string | thread id |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "thread id"
}
}
}Account usage and charges — current consumption vs plan limits.
No arguments.
{
"type": "object",
"properties": {}
}Let every sandbox in a network tag reach a target, a subnet or the names under a DNS suffix behind a connector, including sandboxes that join the tag later; leaving the tag removes access. Give exactly one of target, subnet or dns. Owners and admins only.
| Argument | Type | Description |
|---|---|---|
| dns | string | DNS suffix at or under one the connector announced. |
| tag* | string | Network tag, as in a sandbox's networks. |
| subnet | string | IPv4 CIDR inside a subnet the connector announced. |
| target | string | Target name the connector announced. |
| connector* | string | Connector name. |
{
"type": "object",
"required": [
"tag",
"connector"
],
"properties": {
"dns": {
"type": "string",
"description": "DNS suffix at or under one the connector announced."
},
"tag": {
"type": "string",
"description": "Network tag, as in a sandbox's networks."
},
"subnet": {
"type": "string",
"description": "IPv4 CIDR inside a subnet the connector announced."
},
"target": {
"type": "string",
"description": "Target name the connector announced."
},
"connector": {
"type": "string",
"description": "Connector name."
}
}
}Let one sandbox reach something behind a connector: a target (then <target>.private on its own port, and its real hostname when the connector announced one), a subnet inside one the connector announced (the platform's own ranges are never routed and come back as shadowed), or the names under a DNS suffix at or under one it announced. Give exactly one of target, subnet or dns. Owners and admins only; refused on nodes that cannot carry it.
| Argument | Type | Description |
|---|---|---|
| dns | string | DNS suffix at or under one the connector announced, like corp.internal. |
| subnet | string | IPv4 CIDR inside a subnet the connector announced, like 10.0.5.0/24. |
| target | string | Target name the connector announced. |
| connector* | string | Connector name. |
| sandbox_id* | string | The sandbox id. |
{
"type": "object",
"required": [
"sandbox_id",
"connector"
],
"properties": {
"dns": {
"type": "string",
"description": "DNS suffix at or under one the connector announced, like corp.internal."
},
"subnet": {
"type": "string",
"description": "IPv4 CIDR inside a subnet the connector announced, like 10.0.5.0/24."
},
"target": {
"type": "string",
"description": "Target name the connector announced."
},
"connector": {
"type": "string",
"description": "Connector name."
},
"sandbox_id": {
"type": "string",
"description": "The sandbox id."
}
}
}Who did what in this organization, newest first.
| Argument | Type | Description |
|---|---|---|
| limit | integer | entries to return |
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"description": "entries to return"
}
}
}The org's private-network connectors: name, whether an instance is online, and the targets it announces (name and port, and a hostname when it has one). A sandbox can be granted a target with grant_private_target.
No arguments.
{
"type": "object",
"properties": {}
}Scheduled jobs and when each runs next.
No arguments.
{
"type": "object",
"properties": {}
}The org's custom hostnames with their verification status and the CNAME record each one needs, or the TXT record (txt_record) that an address-only match requires. A host stays pending until the platform sees that record in DNS, so this is where you find out whether the DNS change actually landed.
No arguments.
{
"type": "object",
"properties": {}
}List a directory in the sandbox workspace as structured entries (name, size, whether it is a directory) — use it to find your way around before read_file, rather than parsing ls output from run_command. Paths are relative to the workspace root; omit path for the root. An absolute path outside the workspace is refused.
| Argument | Type | Description |
|---|---|---|
| path | string | directory relative to the workspace root (default the root) |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"path": {
"type": "string",
"description": "directory relative to the workspace root (default the root)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}A function's code deployments, newest (running) first.
| Argument | Type | Description |
|---|---|---|
| name* | string | function name |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "function name"
}
}
}Deployed functions with their replicas and invoke counts.
No arguments.
{
"type": "object",
"properties": {}
}Images sandboxes can boot from, including your own custom ones.
No arguments.
{
"type": "object",
"properties": {}
}MCP servers available to attach to an agent.
No arguments.
{
"type": "object",
"properties": {}
}The raw public ports this sandbox publishes, each with the address to connect to. Call it to recover an endpoint you did not keep, or to see how close the sandbox is to its plan's cap.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}A project's runs.
| Argument | Type | Description |
|---|---|---|
| id* | string | project id |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "project id"
}
}
}Projects and their stored plans.
No arguments.
{
"type": "object",
"properties": {}
}List active sandboxes: id, template, status.
No arguments.
{
"type": "object",
"properties": {}
}Everything this sandbox can be rolled back to: its on-node checkpoints (with the cap on how many it may hold) and its durable backups, with each one's status, size and age. Call it before restore_sandbox to find the name or id to restore, or after create_backup to watch a pending backup turn ready. A deployment with no object store reports backups_unavailable and still lists checkpoints.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}The org's vault entries by name, with whether each is auto-injected. Values of sealed entries never come back. Use it to find out what a sandbox can be given without asking a human to paste a credential again.
No arguments.
{
"type": "object",
"properties": {}
}The org's named snapshots: name, status (building or ready), runtime, size and the resources each was captured with. Check here before creating a sandbox from a snapshot — a building one is not bootable yet. Pass name for one snapshot's detail and every version of it. A node that does not yet hold a snapshot answers a create with 503 template_fetching while it pulls it; retrying succeeds.
| Argument | Type | Description |
|---|---|---|
| name | string | optional: one snapshot's detail and versions |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "optional: one snapshot's detail and versions"
}
}
}List available sandbox templates (python-3.11, node, playwright, …) with their default resources.
No arguments.
{
"type": "object",
"properties": {}
}Saved conversation threads.
No arguments.
{
"type": "object",
"properties": {}
}The org's volumes: id, name, size, and attached_to when a sandbox holds one.
No arguments.
{
"type": "object",
"properties": {}
}Recent webhook deliveries, newest first, with how each endpoint answered.
No arguments.
{
"type": "object",
"properties": {}
}Webhooks that report sandbox lifecycle events for the whole organization, with the events one can subscribe to.
No arguments.
{
"type": "object",
"properties": {}
}Pause a sandbox: metering stops and its slot is freed, state is kept. resume_sandbox wakes it.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Store (or overwrite) a named secret in the org vault, so a sandbox can be given it by name instead of having the value pasted into env every time. auto_inject puts it into the environment of every sandbox the org creates from then on — powerful and easy to regret, so leave it off unless the credential really is universal. The value is sealed and cannot be read back through the API.
| Argument | Type | Description |
|---|---|---|
| name* | string | env-style name, e.g. OPENAI_API_KEY |
| value* | string | the secret value |
| auto_inject | boolean | inject into every new sandbox in the org (default false) |
{
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"description": "env-style name, e.g. OPENAI_API_KEY"
},
"value": {
"type": "string",
"description": "the secret value"
},
"auto_inject": {
"type": "boolean",
"description": "inject into every new sandbox in the org (default false)"
}
}
}Read a file from the sandbox workspace and return its content as text. Paths are relative to the workspace root; an absolute path outside it is refused.
| Argument | Type | Description |
|---|---|---|
| path* | string | file path relative to the workspace |
| sandbox_id* | string | sandbox id |
{
"type": "object",
"required": [
"sandbox_id",
"path"
],
"properties": {
"path": {
"type": "string",
"description": "file path relative to the workspace"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id"
}
}
}Detach a custom hostname. It stops routing at once and its certificate is no longer served, so anything pointing at it breaks; the sandbox keeps its ordinary preview URL. The DNS record at the registrar is not yours to remove and stays behind.
| Argument | Type | Description |
|---|---|---|
| host* | string | hostname to detach (see list_domains) |
{
"type": "object",
"required": [
"host"
],
"properties": {
"host": {
"type": "string",
"description": "hostname to detach (see list_domains)"
}
}
}Stop publishing a sandbox port. Existing connections through it drop, and the public port is released for reuse. The sandbox and the service inside it are untouched.
| Argument | Type | Description |
|---|---|---|
| port* | integer | the sandbox port to stop publishing |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id",
"port"
],
"properties": {
"port": {
"type": "integer",
"description": "the sandbox port to stop publishing"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Rename a function. Its history, logs and code move with it; the old invoke URL keeps working for 7 days.
| Argument | Type | Description |
|---|---|---|
| name* | string | new function name |
| function* | string | current function name |
{
"type": "object",
"required": [
"function",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "new function name"
},
"function": {
"type": "string",
"description": "current function name"
}
}
}Keep a sandbox from expiring. With no timeout_seconds it resets the idle clock — the cheap keep-alive to call during a long job so an idle-pause does not land mid-run. With timeout_seconds it re-stamps the hard lifetime instead, counted from now; -1 asks for no expiry at all, which needs a plan that includes persistent workstations and is refused otherwise. A request above the plan's ceiling is silently clamped to it, so read back with get_sandbox if the exact expiry matters.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
| timeout_seconds | integer | new hard lifetime in seconds; -1 = never expire. Omit to just reset the idle clock |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
},
"timeout_seconds": {
"type": "integer",
"description": "new hard lifetime in seconds; -1 = never expire. Omit to just reset the idle clock"
}
}
}Roll a sandbox back onto one of its save points, in place. DESTRUCTIVE: everything written since that save is gone, and the running processes are replaced by the captured ones. The id, URL and token do not change, so anything pointing at the sandbox keeps working. Name exactly one of checkpoint (fast, on-node) or backup (pulled from the object store, so slower), and pass confirm=true — without it nothing happens.
| Argument | Type | Description |
|---|---|---|
| backup | string | a backup id (durable off-node copy) |
| confirm* | boolean | must be true; without it nothing happens |
| checkpoint | string | a checkpoint name (on-node save point) |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id",
"confirm"
],
"properties": {
"backup": {
"type": "string",
"description": "a backup id (durable off-node copy)"
},
"confirm": {
"type": "boolean",
"description": "must be true; without it nothing happens"
},
"checkpoint": {
"type": "string",
"description": "a checkpoint name (on-node save point)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Resume a paused sandbox (also relaunches its registered start_server command).
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Revoke one private grant by id: a tag's grant, or with sandbox_id one of that sandbox's own grants. Open connections it carried close.
| Argument | Type | Description |
|---|---|---|
| grant_id* | string | Grant id (pg_...). |
| sandbox_id | string | The sandbox id, for one of its own grants; omit for a tag grant. |
{
"type": "object",
"required": [
"grant_id"
],
"properties": {
"grant_id": {
"type": "string",
"description": "Grant id (pg_...)."
},
"sandbox_id": {
"type": "string",
"description": "The sandbox id, for one of its own grants; omit for a tag grant."
}
}
}Stop a sandbox reaching a target behind a connector. Open connections to it close.
| Argument | Type | Description |
|---|---|---|
| target* | string | Target name. |
| connector* | string | Connector name. |
| sandbox_id* | string | The sandbox id. |
{
"type": "object",
"required": [
"sandbox_id",
"connector",
"target"
],
"properties": {
"target": {
"type": "string",
"description": "Target name."
},
"connector": {
"type": "string",
"description": "Connector name."
},
"sandbox_id": {
"type": "string",
"description": "The sandbox id."
}
}
}Restore the code of an earlier deployment; settings stay as they are.
| Argument | Type | Description |
|---|---|---|
| name* | string | function name |
| deployment* | string | deployment id from list_function_deployments |
{
"type": "object",
"required": [
"name",
"deployment"
],
"properties": {
"name": {
"type": "string",
"description": "function name"
},
"deployment": {
"type": "string",
"description": "deployment id from list_function_deployments"
}
}
}Run a shell command in the sandbox and get {stdout, stderr, exit_code}. Use bash -c '…' style strings for pipelines. Large output is truncated — write to a file and read_file it instead.
| Argument | Type | Description |
|---|---|---|
| cmd* | string | shell command to run |
| cwd | string | working directory (default workspace root) |
| sandbox_id* | string | sandbox id |
| timeout_seconds | integer | command timeout (default 60) |
{
"type": "object",
"required": [
"sandbox_id",
"cmd"
],
"properties": {
"cmd": {
"type": "string",
"description": "shell command to run"
},
"cwd": {
"type": "string",
"description": "working directory (default workspace root)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id"
},
"timeout_seconds": {
"type": "integer",
"description": "command timeout (default 60)"
}
}
}Run a scheduled job now.
| Argument | Type | Description |
|---|---|---|
| id* | string | job id |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "job id"
}
}
}Save a named, restorable point of a running sandbox — its disk, plus its RAM and running processes on Firecracker — on the node that hosts it. Cheap: the guest is frozen for a fraction of a second (the reply reports paused_ms) and then runs on. Reach for it before anything you might want to undo — a migration, a risky refactor, an install — then roll back with restore_sandbox. A checkpoint lives on the node and dies with the sandbox; create_backup is the copy that outlives it, save_snapshot the one other sandboxes can boot from. There is a per-sandbox cap, which list_saved_states reports.
| Argument | Type | Description |
|---|---|---|
| name* | string | checkpoint name, e.g. before-migration |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "checkpoint name, e.g. before-migration"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Save a running sandbox as a named, org-wide snapshot that new sandboxes can be created from (pass the name as create_sandbox's template). This is how a slow setup — dependencies installed, a database seeded, a build warmed — is paid for once. The capture freezes the guest briefly, then the whole memory image is uploaded in the background: the reply is a 202 with status building, and list_snapshots says when it is ready. Saving the same name again adds a version and retires the old one. Minutes, and gigabytes.
| Argument | Type | Description |
|---|---|---|
| name* | string | snapshot name, reused as a template id |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id",
"name"
],
"properties": {
"name": {
"type": "string",
"description": "snapshot name, reused as a template id"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Put a sandbox on an automatic backup schedule, or take it off one. Give period (a duration like 24h or 30m — whole minutes under an hour, or whole hours up to 24h, and never under 15m) or cron (a 5-field expression), not both; "off" as either removes the schedule. retention (like 7d) is how long each backup is kept, and needs a period. Every run costs what create_backup costs, so do not schedule one on a sandbox that will not be around.
| Argument | Type | Description |
|---|---|---|
| cron | string | 5-field cron expression instead of period |
| period | string | duration between backups, e.g. 24h; or "off" to remove the schedule |
| retention | string | how long backups are kept, e.g. 7d (needs a period) |
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"cron": {
"type": "string",
"description": "5-field cron expression instead of period"
},
"period": {
"type": "string",
"description": "duration between backups, e.g. 24h; or \"off\" to remove the schedule"
},
"retention": {
"type": "string",
"description": "how long backups are kept, e.g. 7d (needs a period)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Replace a running or paused sandbox's outbound network rules. Entries are hostnames ("*.example.com" for subdomains), IPv4 addresses or CIDRs; deny ["0.0.0.0/0"] blocks everything not allowed. The org's policy is the ceiling: rules can narrow it, never widen it. Takes effect at once and cuts open connections. Omit both lists to return to the default.
| Argument | Type | Description |
|---|---|---|
| deny | array | |
| allow | array | |
| sandbox_id* | string | sandbox id or slug |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"deny": {
"type": "array",
"items": {
"type": "string"
}
},
"allow": {
"type": "array",
"items": {
"type": "string"
}
},
"sandbox_id": {
"type": "string",
"description": "sandbox id or slug"
}
}
}Replace a sandbox's network tags. Sandboxes cannot reach each other by default; two in the same org on the same node reach each other, on any port, only while they share a tag, and resolve each other as <slug>.pd. Takes effect at once, no restart. An empty list closes the sandbox off again. A tag network lives on one node: create_sandbox places a tagged sandbox beside its peers, and tagging a sandbox into a network whose sandboxes run on another node is refused.
| Argument | Type | Description |
|---|---|---|
| networks | array | the tags the sandbox should be on; [] removes it from every network |
| sandbox_id* | string | sandbox id or slug |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"networks": {
"type": "array",
"items": {
"type": "string"
},
"description": "the tags the sandbox should be on; [] removes it from every network"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id or slug"
}
}
}Freeze a sandbox in RAM. Cheaper than leaving it running and far quicker to wake than a pause, because nothing is written to disk — but it keeps its slot and its memory, so a long idle belongs in pause_sandbox instead. resume_sandbox wakes it either way. Use it between steps of a session you will come straight back to.
| Argument | Type | Description |
|---|---|---|
| sandbox_id* | string | sandbox id, e.g. sb_ab12cd |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id, e.g. sb_ab12cd"
}
}
}Record a run of a project: which sandbox carries each planned service.
| Argument | Type | Description |
|---|---|---|
| id* | string | project id |
| services | array | planned services and their sandboxes |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "project id"
},
"services": {
"type": "array",
"items": {
"type": "object",
"required": [
"service_id",
"sandbox_id"
],
"properties": {
"sandbox_id": {
"type": "string",
"description": "sandbox id"
},
"service_id": {
"type": "string",
"description": "planned service"
}
}
},
"description": "planned services and their sandboxes"
}
}
}Register + launch a persistent server command in the sandbox (survives idle-pause/resume, unlike run_command). The app must bind $PORT.
| Argument | Type | Description |
|---|---|---|
| cmd* | string | server command, e.g. `python /app/main.py` |
| port | integer | port the app listens on (0 = the sandbox default) |
| sandbox_id* | string | sandbox id |
{
"type": "object",
"required": [
"sandbox_id",
"cmd"
],
"properties": {
"cmd": {
"type": "string",
"description": "server command, e.g. `python /app/main.py`"
},
"port": {
"type": "integer",
"description": "port the app listens on (0 = the sandbox default)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id"
}
}
}Send one signed test request to a webhook and report how its endpoint answered.
| Argument | Type | Description |
|---|---|---|
| id* | string | webhook id |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "webhook id"
}
}
}Turn a scheduled job on or off.
| Argument | Type | Description |
|---|---|---|
| id* | string | job id |
| enabled* | boolean | true to run it on schedule |
{
"type": "object",
"required": [
"id",
"enabled"
],
"properties": {
"id": {
"type": "string",
"description": "job id"
},
"enabled": {
"type": "boolean",
"description": "true to run it on schedule"
}
}
}Turn a webhook on or off.
| Argument | Type | Description |
|---|---|---|
| id* | string | webhook id |
| enabled* | boolean | true to deliver events |
{
"type": "object",
"required": [
"id",
"enabled"
],
"properties": {
"id": {
"type": "string",
"description": "webhook id"
},
"enabled": {
"type": "boolean",
"description": "true to deliver events"
}
}
}Change a function: only the fields passed change. New files replace the running replicas; public=false turns key-less invoke off.
| Argument | Type | Description |
|---|---|---|
| env | object | environment variables by name; {} clears them |
| name* | string | function name |
| port | integer | port the command listens on |
| vcpu | integer | vCPUs |
| files | array | source files to include |
| start | string | command that serves the function |
| public | boolean | invokable without a key |
| template | string | template id |
| memory_mb | integer | memory in MB |
| idle_timeout | integer | seconds without an invoke before the last replica stops; 0 keeps one warm |
| max_replicas | integer | burst ceiling |
| replica_concurrency | integer | requests one replica serves at once, 1 to 100 |
{
"type": "object",
"required": [
"name"
],
"properties": {
"env": {
"type": "object",
"description": "environment variables by name; {} clears them"
},
"name": {
"type": "string",
"description": "function name"
},
"port": {
"type": "integer",
"description": "port the command listens on"
},
"vcpu": {
"type": "integer",
"description": "vCPUs"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"description": "path in the function"
},
"content": {
"type": "string",
"description": "file text"
}
}
},
"description": "source files to include"
},
"start": {
"type": "string",
"description": "command that serves the function"
},
"public": {
"type": "boolean",
"description": "invokable without a key"
},
"template": {
"type": "string",
"description": "template id"
},
"memory_mb": {
"type": "integer",
"description": "memory in MB"
},
"idle_timeout": {
"type": "integer",
"description": "seconds without an invoke before the last replica stops; 0 keeps one warm"
},
"max_replicas": {
"type": "integer",
"description": "burst ceiling"
},
"replica_concurrency": {
"type": "integer",
"description": "requests one replica serves at once, 1 to 100"
}
}
}Block until the sandbox's app answers on a port (or timeout), by probing 127.0.0.1:<port> from inside the sandbox. Returns {ready, port, code}. Use after start_server, before hitting the preview url.
| Argument | Type | Description |
|---|---|---|
| port | integer | app port (default 8000) |
| sandbox_id* | string | sandbox id |
| timeout_seconds | integer | max seconds to wait (default 30) |
{
"type": "object",
"required": [
"sandbox_id"
],
"properties": {
"port": {
"type": "integer",
"description": "app port (default 8000)"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id"
},
"timeout_seconds": {
"type": "integer",
"description": "max seconds to wait (default 30)"
}
}
}Write text content to a file in the sandbox workspace (path is relative to the workspace root; parent dirs are created). An absolute path is not re-rooted: one outside the workspace is refused, so use run_command to reach it.
| Argument | Type | Description |
|---|---|---|
| path* | string | file path relative to the workspace, e.g. app/main.py |
| content* | string | full file content |
| sandbox_id* | string | sandbox id |
{
"type": "object",
"required": [
"sandbox_id",
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"description": "file path relative to the workspace, e.g. app/main.py"
},
"content": {
"type": "string",
"description": "full file content"
},
"sandbox_id": {
"type": "string",
"description": "sandbox id"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 1, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.