run_script
Execute a script file immediately for ad-hoc tasks. Provide the filename and optional path or inline content to run it directly without scheduling.
Instructions
Run a script file directly (ad-hoc execution, not via cron).
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": {
"filename": "<filename>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Sub-directory path, optional | |
| content | No | Optional inline content to execute instead of file content | |
| filename | Yes | Script file name, e.g. mytask.js (required) |