Run code in the workspace
workspace_runRun a JavaScript (ES module) program inside your workspace. It must export default async function (input) { ... } and return JSON. Use import { get } from "codemode:finzdata" for data and import fs from "node:fs/promises" for files under /workspace. No other network access.
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": "workspace_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| input | No | JSON value passed to your default export. | |
| timeout_ms | No |