Code interpreter (Model Studio sandbox)
code_interpreterRuns Python in a sandbox to handle calculations, data analysis, file parsing, and charting from a task description, returning the answer plus executed code and output.
Instructions
Run Python in Model Studio's sandbox for calculations, data analysis, file parsing and charting. Send the task, not necessarily the code; returns the answer plus the executed code and output. Billed to your Model Studio plan (~$10/1k web searches in Singapore) — ask before bulk use.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>"
},
"name": "code_interpreter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The computation or analysis to perform, including any inline data. | |
| max_output_tokens | No |