execute_code
Execute TypeScript or Python code in a secure, isolated interpreter. Submit your script and capture stdout/stderr output to get results for LLM-driven tasks.
Instructions
Execute arbitrary Typescript or Python code.
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": "execute_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The code you are writing. This will be executed as a script. Write any output to stdout or stderr. | |
| language | No | The language of the code you are writing. This must be either 'TYPESCRIPT' or 'PYTHON'. |