code_start
Start background JavaScript in QuickJS for asynchronous code execution; supply cwd for a new session or sessionId to continue an existing one.
Instructions
Start background JavaScript in QuickJS. cwd is the absolute project directory, passed as this tool's cwd argument: required for a new session (do not define cwd inside the code); omit it only when sessionId continues an existing session. Supported modes: autoApprove (default, no classifier or human prompts), rules, auto and bypassPermissions. Node.js globals/imports are unavailable. All OS/MCP operations use checked helpers; Docker additionally isolates file/shell operations. Without Docker, permitted shell programs have the host account's OS permissions. Use code_status to inspect progress. Output hooks may withhold output until completion. Completed results and explicit JSON state persist; running jobs do not resume after restart.
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": {
"code": "<code>"
},
"name": "code_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| code | Yes | ||
| sessionId | No | ||
| timeoutMs | No |