List saved scripts
tool_listList saved scripts or read one by name to inspect its code, helping you check existing tools before writing a new script.
Instructions
List the user's saved scripts (name, description, params), or read one with its code when name is given. Check here before writing a new script. Scripts are small JavaScript tools saved on this computer (folder tools/ next to config.json) so they can be run again later. The script body is an async function: it gets args, call(toolName, args) (runs any print-mcp tool and returns its parsed result), readFile(path) (Buffer; only files named in args or returned by tools), writeFile(name, bufferOrText) (saved in the run's output folder, returns the path), sharp(buffer) for image work (no file paths: pass a Buffer, save with writeFile), log(...), sleep(ms), and toolList / toolUse / toolWrite / toolEdit / toolRemove. return a JSON value. No network, no other file access, no child processes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tool_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Return this one script including its code |