node_run_script
Execute a JavaScript file with Node.js, passing optional arguments and setting a timeout to control script execution.
Instructions
Execute a JavaScript file with Node.js.
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": {
"path": "<path>"
},
"name": "node_run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Optional arguments to pass to the script. | |
| path | Yes | Path to the .js file (absolute or relative to cwd). | |
| timeout | No | Execution timeout in seconds. Default: 120. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||