Read script
read_scriptRead the Python source of a saved script to inspect its code before running or updating it.
Instructions
Read the Python source of one saved script. Use when: checking a script before run_script or write_script. Instead: list_scripts for names; read_file for files under the MCP root. Requires: --mcp-allow-scripts (stdio only); not in paranoid mode. Behavior: read-only. A missing script, a bad name or a symlinked file fails. Time limit: 15 s. Returns: {name, source}.
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": {
"name": "<name>"
},
"name": "read_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The script's name, from list_scripts: letters, digits, '_' and '-', at most 80 characters, without '.py', e.g. 'disk_report'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| source | Yes |