sandbox_create
Creates an isolated, disposable Linux sandbox and waits until it is ready, so you can safely run untrusted code or install packages without affecting the host.
Instructions
Create a fresh, disposable Linux computer (a "sandbox") and wait until it is ready to use.
Use this before running untrusted code, installing packages, or trying anything you would not want to do on the user's real computer. Every sandbox starts from the same clean state and is completely separate from the user's machine and from other sandboxes.
network: "none" (default) gives the sandbox no network at all. Choose another mode only when the task needs to download something:
"web": internet for web downloads only (HTTP and HTTPS), and nothing else: the user's own computer and home network stay unreachable. Prefer this. Standard tools (curl, wget, pip, git over https) work as usual; with sudo use
sudo -E, for examplesudo -E apt-get -y install <package>. ping and non-web protocols do not work. It may not be set up on this computer; the error will say so."nat": full internet access. It can also reach the user's own computer and home network, so never use it for code you do not trust.
Takes up to a few minutes. Returns the sandbox_id to pass to the other sandbox tools. Destroy the sandbox with sandbox_destroy when you are finished.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sandbox_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | none |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |