read_script
Retrieve the text of a saved script by its path from PlatypusDB, read-only, so you can inspect SQL content without running or changing anything.
Instructions
Returns the text of a script the user saved in PlatypusDB, by the path list_scripts shows, with the connection it is linked to. At most 256 KiB: a longer script is cut, and the answer says so (truncated). A script linked to a connection agents may not use is refused. Read-only: nothing is run or changed.
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": "read_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The script's path, as `list_scripts` shows it, e.g. `reports/monthly.sql`. | |
| project | No | The project's name, as the app shows it; left out for All connections. |