Read an app's file
read_fileRead a file from line offset, counted from 1: 1,000 lines by default, 2,000 at most, and 40,000 characters at most. A published app's data file is read from the live app, any other file from the draft.
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": {
"app": "<app>",
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app, as list_apps names it, such as sam/budget. | |
| path | Yes | app.py, instructions.md, tests/<name>.py, migrate.py or data/<name>. | |
| limit | No | ||
| offset | No |