create_sandbox
Create a secure E2B sandbox for code execution and retrieve its unique ID. Adjust timeout and template to match your workflow.
Instructions
Create a new E2B sandbox and return its ID.
Args:
timeout: Timeout for the sandbox in seconds, default is 300 seconds
template: Optional template name or ID to use for creating the sandbox. If not provided, the default template is used.
Returns:
JSON string containing the sandbox ID
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": "create_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| template | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |