scripts
List all loaded scripts, retrieve full source by URL or inline index, and save script source to a local file with a single action.
Instructions
Script inspection (v0.9.0 unified).
Replaces list_scripts / get_script_source / save_script.
Args: action: "list" — list all loaded scripts (src, type, inline preview) "get" — get full source of one script (requires url; use "inline:" for inline scripts) "save" — save script source to local file (requires url + save_path) url: Script URL or "inline:" (required for "get" and "save"). save_path: Local file path (required for "save").
Returns: For "list": list of script info dicts. For "get": dict with source string. For "save": dict with status, path, size.
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": {
"action": "<action>"
},
"name": "scripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| action | Yes | ||
| save_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |