PillDrops
Cloud sandboxes for AI agents: run code, files, previews, browsers, Linux desktops, Android.
使うべきか
品質と安全性
検出事項(10)
- LOWget_metrics 内
- LOWlist_volumes 内
- LOWtoggle_cron_job 内
- LOWget_function 内
- LOWcreate_function 内
- LOWlist_projects 内
- LOWget_project 内
- LOWtoggle_webhook 内
- LOWlist_images 内
- LOWlist_integrations 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"pilldrops": {
"url": "https://pilldrops.com/mcp"
}
}
}リモートエンドポイント
https://pilldrops.com/mcpstreamable-httpできること
ツール一覧
ツール(90)
🟢list_templates
List available sandbox templates (python-3.11, node, playwright, …) with their default resources.
入力スキーマ
{
"type": "object",
"properties": {}
}🔴create_sandbox(env, idle_seconds, image, memory_mb, networks, ...)
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.
入力スキーマ
{
"type": "object",
"properties": {
"env": {
"description": "environment variables, KEY=VAL",
"items": {
"type": "string"
},
"type": "array"
},
"idle_seconds": {
"description": "idle auto-pause; -1 = never pause (always-on servers)",
"type": "integer"
},
"image": {
"description": "custom docker image instead of a template",
"type": "string"
},
"memory_mb": {
"description": "memory MB (0 = template default)",
"type": "integer"
},
"networks": {
"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",
"items": {
"type": "string"
},
"type": "array"
},
"ports": {
"description": "preview ports (app must bind $PORT)",
"items": {
"type": "integer"
},
"type": "array"
},
"proxied_secrets": {
"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",
"items": {
"properties": {
"format": {
"description": "value with {} for the secret (default \"Bearer {}\"; Anthropic: \"{}\")",
"type": "string"
},
"header": {
"description": "header to set (default Authorization)",
"type": "string"
},
"host": {
"description": "the API host the secret is for, e.g. api.openai.com",
"type": "string"
},
"name": {
"description": "vault secret name",
"type": "string"
}
},
"required": [
"name",
"host"
],
"type": "object"
},
"type": "array"
},
"public": {
"description": "make the preview URL reachable without a token (shareable link); default false = private",
"type": "boolean"
},
"runtime": {
"description": "pin isolation runtime: firecracker | docker (omit = auto)",
"type": "string"
},
"secret_refs": {
"description": "vault secrets (see list_secrets) to put in the sandbox's environment by name",
"items": {
"type": "string"
},
"type": "array"
},
"slug": {
"description": "DNS label this sandbox is hosted and resolved under; also its name on a network tag (<slug>.pd)",
"type": "string"
},
"start": {
"description": "long-lived app/server command; makes the sandbox serve a preview URL",
"type": "string"
},
"storage_mb": {
"description": "disk MB (0 = template default)",
"type": "integer"
},
"template": {
"description": "template id (see list_templates); default python-3.11",
"type": "string"
},
"timeout_seconds": {
"description": "sandbox lifetime (0 = plan default)",
"type": "integer"
},
"vcpu": {
"description": "vCPUs (0 = template default)",
"type": "integer"
},
"volumes": {
"description": "standalone volumes to attach (see create_volume)",
"items": {
"properties": {
"id": {
"description": "volume id",
"type": "string"
},
"path": {
"description": "where to mount it, e.g. /data",
"type": "string"
}
},
"required": [
"id",
"path"
],
"type": "object"
},
"type": "array"
}
}
}🟡set_networks(networks, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"networks": {
"description": "the tags the sandbox should be on; [] removes it from every network",
"items": {
"type": "string"
},
"type": "array"
},
"sandbox_id": {
"description": "sandbox id or slug",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟡set_egress(allow, deny, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"allow": {
"items": {
"type": "string"
},
"type": "array"
},
"deny": {
"items": {
"type": "string"
},
"type": "array"
},
"sandbox_id": {
"description": "sandbox id or slug",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢list_sandboxes
List active sandboxes: id, template, status.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢get_sandbox(sandbox_id)
Inspect one sandbox: status, resources, preview url when it serves an app.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟡run_command(cmd, cwd, sandbox_id, timeout_seconds)
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.
入力スキーマ
{
"type": "object",
"properties": {
"cmd": {
"description": "shell command to run",
"type": "string"
},
"cwd": {
"description": "working directory (default workspace root)",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id",
"type": "string"
},
"timeout_seconds": {
"description": "command timeout (default 60)",
"type": "integer"
}
},
"required": [
"sandbox_id",
"cmd"
]
}⚪start_server(cmd, port, sandbox_id)
Register + launch a persistent server command in the sandbox (survives idle-pause/resume, unlike run_command). The app must bind $PORT.
入力スキーマ
{
"type": "object",
"properties": {
"cmd": {
"description": "server command, e.g. `python /app/main.py`",
"type": "string"
},
"port": {
"description": "port the app listens on (0 = the sandbox default)",
"type": "integer"
},
"sandbox_id": {
"description": "sandbox id",
"type": "string"
}
},
"required": [
"sandbox_id",
"cmd"
]
}🟡write_file(content, path, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"content": {
"description": "full file content",
"type": "string"
},
"path": {
"description": "file path relative to the workspace, e.g. app/main.py",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id",
"type": "string"
}
},
"required": [
"sandbox_id",
"path",
"content"
]
}🟢read_file(path, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"path": {
"description": "file path relative to the workspace",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id",
"type": "string"
}
},
"required": [
"sandbox_id",
"path"
]
}🟢get_logs(limit, sandbox_id)
Fetch recent sandbox logs (start command + service output) — the first stop when an app misbehaves or a preview 502s.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "max lines (default 500)",
"type": "integer"
},
"sandbox_id": {
"description": "sandbox id",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢get_metrics(sandbox_id)
Live CPU/memory of a sandbox — spot OOMs and busy loops.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}⚪pause_sandbox(sandbox_id)
Pause a sandbox: metering stops and its slot is freed, state is kept. resume_sandbox wakes it.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}⚪fork_sandbox(sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}⚪resume_sandbox(sandbox_id)
Resume a paused sandbox (also relaunches its registered start_server command).
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢get_events(sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "optional: only this sandbox's events",
"type": "string"
}
}
}⚪wait_ready(port, sandbox_id, timeout_seconds)
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.
入力スキーマ
{
"type": "object",
"properties": {
"port": {
"description": "app port (default 8000)",
"type": "integer"
},
"sandbox_id": {
"description": "sandbox id",
"type": "string"
},
"timeout_seconds": {
"description": "max seconds to wait (default 30)",
"type": "integer"
}
},
"required": [
"sandbox_id"
]
}🔴destroy_sandbox(sandbox_id)
Destroy a sandbox and stop entitlements. Its record, logs and cost remain in history.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢get_usage
Account usage and charges — current consumption vs plan limits.
入力スキーマ
{
"type": "object",
"properties": {}
}🟡save_checkpoint(name, sandbox_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.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "checkpoint name, e.g. before-migration",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id",
"name"
]
}🟡create_backup(sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟡list_saved_states(sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟡restore_sandbox(backup, checkpoint, confirm, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"backup": {
"description": "a backup id (durable off-node copy)",
"type": "string"
},
"checkpoint": {
"description": "a checkpoint name (on-node save point)",
"type": "string"
},
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id",
"confirm"
]
}🔴delete_saved_state(backup, checkpoint, confirm, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"backup": {
"description": "a backup id (durable off-node copy)",
"type": "string"
},
"checkpoint": {
"description": "a checkpoint name (on-node save point)",
"type": "string"
},
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id",
"confirm"
]
}🟡set_backup_schedule(cron, period, retention, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"cron": {
"description": "5-field cron expression instead of period",
"type": "string"
},
"period": {
"description": "duration between backups, e.g. 24h; or \"off\" to remove the schedule",
"type": "string"
},
"retention": {
"description": "how long backups are kept, e.g. 7d (needs a period)",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟡save_snapshot(name, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "snapshot name, reused as a template id",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id",
"name"
]
}🟡list_snapshots(name)
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.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "optional: one snapshot's detail and versions",
"type": "string"
}
}
}🔴delete_snapshot(confirm, name)
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.
入力スキーマ
{
"type": "object",
"properties": {
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"name": {
"description": "snapshot name (see list_snapshots)",
"type": "string"
}
},
"required": [
"name",
"confirm"
]
}⚪standby_sandbox(sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢renew_sandbox(sandbox_id, timeout_seconds)
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.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
},
"timeout_seconds": {
"description": "new hard lifetime in seconds; -1 = never expire. Omit to just reset the idle clock",
"type": "integer"
}
},
"required": [
"sandbox_id"
]
}⚪resize_sandbox(memory_mb, sandbox_id, storage_mb, vcpu)
Give a sandbox more (or fewer) vCPUs and memory, or a larger disk. The sandbox boots again to take the new size: its files stay, running processes start over and its start command runs again, so do not call this in the middle of a job. A disk only grows. Values above the plan's limits are lowered to them; the reply says what was granted. Give at least one field.
入力スキーマ
{
"type": "object",
"properties": {
"memory_mb": {
"description": "memory in MB; omit to keep",
"type": "integer"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
},
"storage_mb": {
"description": "disk in MB; omit to keep; only grows",
"type": "integer"
},
"vcpu": {
"description": "vCPUs; omit to keep",
"type": "integer"
}
},
"required": [
"sandbox_id"
]
}🟢list_files(path, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"path": {
"description": "directory relative to the workspace root (default the root)",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢list_secrets
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.
入力スキーマ
{
"type": "object",
"properties": {}
}🟡put_secret(auto_inject, name, value)
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.
入力スキーマ
{
"type": "object",
"properties": {
"auto_inject": {
"description": "inject into every new sandbox in the org (default false)",
"type": "boolean"
},
"name": {
"description": "env-style name, e.g. OPENAI_API_KEY",
"type": "string"
},
"value": {
"description": "the secret value",
"type": "string"
}
},
"required": [
"name",
"value"
]
}🔴delete_secret(name)
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.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "secret name (see list_secrets)",
"type": "string"
}
},
"required": [
"name"
]
}🟡create_volume(name, size_mb)
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.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "a label for the volume",
"type": "string"
},
"size_mb": {
"description": "256 to 102400",
"type": "integer"
}
},
"required": [
"size_mb"
]
}🟢list_volumes
The org's volumes: id, name, size, and attached_to when a sandbox holds one.
入力スキーマ
{
"type": "object",
"properties": {}
}🔴delete_volume(volume_id)
Delete a volume and everything on it. Refused while a sandbox holds it; destroy that sandbox first. There is no undo.
入力スキーマ
{
"type": "object",
"properties": {
"volume_id": {
"description": "volume id (see list_volumes)",
"type": "string"
}
},
"required": [
"volume_id"
]
}🟡forward_port(port, sandbox_id, udp)
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.
入力スキーマ
{
"type": "object",
"properties": {
"port": {
"description": "the port inside the sandbox to publish",
"type": "integer"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
},
"udp": {
"description": "also forward UDP (Firecracker only; default TCP only)",
"type": "boolean"
}
},
"required": [
"sandbox_id",
"port"
]
}🟢list_port_forwards(sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🔴remove_port_forward(port, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"port": {
"description": "the sandbox port to stop publishing",
"type": "integer"
},
"sandbox_id": {
"description": "sandbox id, e.g. sb_ab12cd",
"type": "string"
}
},
"required": [
"sandbox_id",
"port"
]
}🟡add_domain(host, port, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"host": {
"description": "hostname, e.g. app.example.com, or *.example.com for an org wildcard",
"type": "string"
},
"port": {
"description": "the sandbox port behind the host (default 8000)",
"type": "integer"
},
"sandbox_id": {
"description": "the sandbox to serve it (omit for a wildcard)",
"type": "string"
}
},
"required": [
"host"
]
}🟡list_domains
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.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢list_connectors
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.
入力スキーマ
{
"type": "object",
"properties": {}
}⚪grant_private_target(connector, dns, sandbox_id, subnet, target)
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.
入力スキーマ
{
"type": "object",
"properties": {
"connector": {
"description": "Connector name.",
"type": "string"
},
"dns": {
"description": "DNS suffix at or under one the connector announced, like corp.internal.",
"type": "string"
},
"sandbox_id": {
"description": "The sandbox id.",
"type": "string"
},
"subnet": {
"description": "IPv4 CIDR inside a subnet the connector announced, like 10.0.5.0/24.",
"type": "string"
},
"target": {
"description": "Target name the connector announced.",
"type": "string"
}
},
"required": [
"sandbox_id",
"connector"
]
}⚪grant_private_tag(connector, dns, subnet, tag, target)
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.
入力スキーマ
{
"type": "object",
"properties": {
"connector": {
"description": "Connector name.",
"type": "string"
},
"dns": {
"description": "DNS suffix at or under one the connector announced.",
"type": "string"
},
"subnet": {
"description": "IPv4 CIDR inside a subnet the connector announced.",
"type": "string"
},
"tag": {
"description": "Network tag, as in a sandbox's networks.",
"type": "string"
},
"target": {
"description": "Target name the connector announced.",
"type": "string"
}
},
"required": [
"tag",
"connector"
]
}⚪revoke_private_target(connector, sandbox_id, target)
Stop a sandbox reaching a target behind a connector. Open connections to it close.
入力スキーマ
{
"type": "object",
"properties": {
"connector": {
"description": "Connector name.",
"type": "string"
},
"sandbox_id": {
"description": "The sandbox id.",
"type": "string"
},
"target": {
"description": "Target name.",
"type": "string"
}
},
"required": [
"sandbox_id",
"connector",
"target"
]
}⚪revoke_private_grant(grant_id, sandbox_id)
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.
入力スキーマ
{
"type": "object",
"properties": {
"grant_id": {
"description": "Grant id (pg_...).",
"type": "string"
},
"sandbox_id": {
"description": "The sandbox id, for one of its own grants; omit for a tag grant.",
"type": "string"
}
},
"required": [
"grant_id"
]
}🔴remove_domain(host)
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.
入力スキーマ
{
"type": "object",
"properties": {
"host": {
"description": "hostname to detach (see list_domains)",
"type": "string"
}
},
"required": [
"host"
]
}🟢agent_ask(message, mode, priority, ref, repo, ...)
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.
入力スキーマ
{
"type": "object",
"properties": {
"message": {
"description": "what to do",
"type": "string"
},
"mode": {
"description": "supervised, guided or autonomous; default the agent's own",
"type": "string"
},
"priority": {
"description": "jump the queue",
"type": "boolean"
},
"ref": {
"description": "branch, tag or SHA to clone with repo",
"type": "string"
},
"repo": {
"description": "with thread new: a git URL the chat works in, cloned on its own branch with the sandbox's GIT_TOKEN",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
},
"thread": {
"description": "latest (default), new, or a thread id",
"type": "string"
}
},
"required": [
"sandbox_id",
"message"
]
}⚪agent_status(sandbox_id)
What an agent is doing now: whether it is ready, its current turn and its queue.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢agent_list_turns(sandbox_id)
An agent's turns with the state, mode and thread of each.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢agent_get_turn(sandbox_id, turn_id)
One turn in full: its state, reply, usage and any error. Poll it after agent_ask.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
},
"turn_id": {
"description": "turn id from agent_ask or agent_list_turns",
"type": "string"
}
},
"required": [
"sandbox_id",
"turn_id"
]
}⚪agent_interrupt(grace_seconds, sandbox_id, turn_id)
Stop a running turn. grace_seconds lets the agent stop politely before it is killed.
入力スキーマ
{
"type": "object",
"properties": {
"grace_seconds": {
"description": "seconds to stop politely",
"type": "number"
},
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
},
"turn_id": {
"description": "turn id from agent_ask or agent_list_turns",
"type": "string"
}
},
"required": [
"sandbox_id",
"turn_id"
]
}⚪agent_pull_request(body, chat_id, draft, sandbox_id, title)
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.
入力スキーマ
{
"type": "object",
"properties": {
"body": {
"description": "pull request description",
"type": "string"
},
"chat_id": {
"description": "the turn id agent_ask returned when it started the chat",
"type": "string"
},
"draft": {
"description": "open it as a draft",
"type": "boolean"
},
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
},
"title": {
"description": "title and commit message; default the chat's first message",
"type": "string"
}
},
"required": [
"sandbox_id",
"chat_id"
]
}🟢agent_list_approvals(sandbox_id)
Actions an agent is waiting on a decision for. Decide each with agent_decide_approval.
入力スキーマ
{
"type": "object",
"properties": {
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
}
},
"required": [
"sandbox_id"
]
}🟢agent_decide_approval(approval_id, decision, sandbox_id)
Allow or deny an action an agent is waiting on. Read what it asks in agent_list_approvals first.
入力スキーマ
{
"type": "object",
"properties": {
"approval_id": {
"description": "approval id",
"type": "string"
},
"decision": {
"description": "allow or deny",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id of an agent template",
"type": "string"
}
},
"required": [
"sandbox_id",
"approval_id",
"decision"
]
}🟢list_cron_jobs
Scheduled jobs and when each runs next.
入力スキーマ
{
"type": "object",
"properties": {}
}🟡create_cron_job(agent_mode, command, name, sandbox_id, schedule, ...)
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.
入力スキーマ
{
"type": "object",
"properties": {
"agent_mode": {
"description": "guided or autonomous",
"type": "string"
},
"command": {
"description": "command to run, or the prompt with agent_mode",
"type": "string"
},
"name": {
"description": "label for the job",
"type": "string"
},
"sandbox_id": {
"description": "sandbox id, not its name",
"type": "string"
},
"schedule": {
"description": "cron expression, e.g. 0 2 * * *",
"type": "string"
},
"timezone": {
"description": "IANA zone the schedule is read in; default UTC",
"type": "string"
}
},
"required": [
"sandbox_id",
"schedule",
"command"
]
}⚪run_cron_job(id)
Run a scheduled job now.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "job id",
"type": "string"
}
},
"required": [
"id"
]
}⚪toggle_cron_job(enabled, id)
Turn a scheduled job on or off.
入力スキーマ
{
"type": "object",
"properties": {
"enabled": {
"description": "true to run it on schedule",
"type": "boolean"
},
"id": {
"description": "job id",
"type": "string"
}
},
"required": [
"id",
"enabled"
]
}🔴delete_cron_job(confirm, id)
Delete a scheduled job.
入力スキーマ
{
"type": "object",
"properties": {
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"id": {
"description": "job id",
"type": "string"
}
},
"required": [
"id",
"confirm"
]
}🟢list_functions
Deployed functions with their replicas and invoke counts.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢get_function(name)
One function's configuration and URL.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "function name",
"type": "string"
}
},
"required": [
"name"
]
}🟡create_function(env, files, idle_timeout, max_replicas, memory_mb, ...)
Deploy a function: a command that serves HTTP on a port, scaled from zero by requests to its URL.
入力スキーマ
{
"type": "object",
"properties": {
"env": {
"description": "environment variables by name",
"type": "object"
},
"files": {
"description": "source files to include",
"items": {
"properties": {
"content": {
"description": "file text",
"type": "string"
},
"path": {
"description": "path in the function",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
},
"type": "array"
},
"idle_timeout": {
"description": "seconds without an invoke before the last replica stops; 0 keeps one warm",
"type": "integer"
},
"max_replicas": {
"description": "burst ceiling",
"type": "integer"
},
"memory_mb": {
"description": "memory in MB",
"type": "integer"
},
"name": {
"description": "function name",
"type": "string"
},
"port": {
"description": "port the command listens on",
"type": "integer"
},
"public": {
"description": "invokable without a key at /v1/public/functions/{public_id}/invoke",
"type": "boolean"
},
"replica_concurrency": {
"description": "requests one replica serves at once, 1 to 100",
"type": "integer"
},
"start": {
"description": "command that serves the function",
"type": "string"
},
"template": {
"description": "template id; default the server's first",
"type": "string"
},
"vcpu": {
"description": "vCPUs",
"type": "integer"
}
},
"required": [
"name",
"start"
]
}🟡update_function(env, files, idle_timeout, max_replicas, memory_mb, ...)
Change a function: only the fields passed change. New files replace the running replicas; public=false turns key-less invoke off.
入力スキーマ
{
"type": "object",
"properties": {
"env": {
"description": "environment variables by name; {} clears them",
"type": "object"
},
"files": {
"description": "source files to include",
"items": {
"properties": {
"content": {
"description": "file text",
"type": "string"
},
"path": {
"description": "path in the function",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
},
"type": "array"
},
"idle_timeout": {
"description": "seconds without an invoke before the last replica stops; 0 keeps one warm",
"type": "integer"
},
"max_replicas": {
"description": "burst ceiling",
"type": "integer"
},
"memory_mb": {
"description": "memory in MB",
"type": "integer"
},
"name": {
"description": "function name",
"type": "string"
},
"port": {
"description": "port the command listens on",
"type": "integer"
},
"public": {
"description": "invokable without a key",
"type": "boolean"
},
"replica_concurrency": {
"description": "requests one replica serves at once, 1 to 100",
"type": "integer"
},
"start": {
"description": "command that serves the function",
"type": "string"
},
"template": {
"description": "template id",
"type": "string"
},
"vcpu": {
"description": "vCPUs",
"type": "integer"
}
},
"required": [
"name"
]
}⚪rename_function(function, name)
Rename a function. Its history, logs and code move with it; the old invoke URL keeps working for 7 days.
入力スキーマ
{
"type": "object",
"properties": {
"function": {
"description": "current function name",
"type": "string"
},
"name": {
"description": "new function name",
"type": "string"
}
},
"required": [
"function",
"name"
]
}🟢list_function_deployments(name)
A function's code deployments, newest (running) first.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "function name",
"type": "string"
}
},
"required": [
"name"
]
}⚪rollback_function(deployment, name)
Restore the code of an earlier deployment; settings stay as they are.
入力スキーマ
{
"type": "object",
"properties": {
"deployment": {
"description": "deployment id from list_function_deployments",
"type": "string"
},
"name": {
"description": "function name",
"type": "string"
}
},
"required": [
"name",
"deployment"
]
}🟢get_function_logs(limit, name)
A function's recent logs.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "lines to return",
"type": "integer"
},
"name": {
"description": "function name",
"type": "string"
}
},
"required": [
"name"
]
}🔴delete_function(confirm, name)
Delete a function and its replicas.
入力スキーマ
{
"type": "object",
"properties": {
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"name": {
"description": "function name",
"type": "string"
}
},
"required": [
"name",
"confirm"
]
}🟢list_projects
Projects and their stored plans.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢get_project(id)
One project with its plan.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "project id",
"type": "string"
}
},
"required": [
"id"
]
}🟡create_project(name, plan)
Create a project. The plan is stored as given.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"description": "project name",
"type": "string"
},
"plan": {
"description": "the project's plan",
"type": "string"
}
},
"required": [
"name"
]
}🔴delete_project(confirm, id)
Delete a project and its run history.
入力スキーマ
{
"type": "object",
"properties": {
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"id": {
"description": "project id",
"type": "string"
}
},
"required": [
"id",
"confirm"
]
}🟢list_project_runs(id)
A project's runs.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "project id",
"type": "string"
}
},
"required": [
"id"
]
}⚪start_project_run(id, services)
Record a run of a project: which sandbox carries each planned service.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "project id",
"type": "string"
},
"services": {
"description": "planned services and their sandboxes",
"items": {
"properties": {
"sandbox_id": {
"description": "sandbox id",
"type": "string"
},
"service_id": {
"description": "planned service",
"type": "string"
}
},
"required": [
"service_id",
"sandbox_id"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"id"
]
}🟢list_threads
Saved conversation threads.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢get_thread(id)
One saved thread with its messages.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "thread id",
"type": "string"
}
},
"required": [
"id"
]
}🟡create_thread(title)
Create a saved conversation thread.
入力スキーマ
{
"type": "object",
"properties": {
"title": {
"description": "name for the thread",
"type": "string"
}
}
}🔴delete_thread(confirm, id)
Delete a saved thread.
入力スキーマ
{
"type": "object",
"properties": {
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"id": {
"description": "thread id",
"type": "string"
}
},
"required": [
"id",
"confirm"
]
}🟢list_webhooks
Webhooks that report sandbox lifecycle events for the whole organization, with the events one can subscribe to.
入力スキーマ
{
"type": "object",
"properties": {}
}🟡create_webhook(events, url)
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.
入力スキーマ
{
"type": "object",
"properties": {
"events": {
"description": "event types to send, e.g. sandbox.created, sandbox.ended; list_webhooks names them all",
"items": {
"type": "string"
},
"type": "array"
},
"url": {
"description": "https URL reachable from the internet",
"type": "string"
}
},
"required": [
"url",
"events"
]
}🟡test_webhook(id)
Send one signed test request to a webhook and report how its endpoint answered.
入力スキーマ
{
"type": "object",
"properties": {
"id": {
"description": "webhook id",
"type": "string"
}
},
"required": [
"id"
]
}⚪toggle_webhook(enabled, id)
Turn a webhook on or off.
入力スキーマ
{
"type": "object",
"properties": {
"enabled": {
"description": "true to deliver events",
"type": "boolean"
},
"id": {
"description": "webhook id",
"type": "string"
}
},
"required": [
"id",
"enabled"
]
}🔴delete_webhook(confirm, id)
Delete a webhook and its signing secret.
入力スキーマ
{
"type": "object",
"properties": {
"confirm": {
"description": "must be true; without it nothing happens",
"type": "boolean"
},
"id": {
"description": "webhook id",
"type": "string"
}
},
"required": [
"id",
"confirm"
]
}🟢list_webhook_deliveries
Recent webhook deliveries, newest first, with how each endpoint answered.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢list_images
Images sandboxes can boot from, including your own custom ones.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢list_integrations
MCP servers available to attach to an agent.
入力スキーマ
{
"type": "object",
"properties": {}
}🟢list_audit_log(limit)
Who did what in this organization, newest first.
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"description": "entries to return",
"type": "integer"
}
}
}コミュニティ
エビデンス