Read one file
read_app_fileRead one file out of an app as text, at most 256 KB. Use it for a file that read_app left out with content_omitted: "answer budget", or to fetch a single file without the rest of the app. A file that is not text, and a text file over that size, are refused rather than truncated. Reads the newest version unless you name one, which is the same version read_app lists.
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_id": "<app_id>",
"path": "<path>"
},
"name": "read_app_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path inside the app, as it appears in read_app's files, for example index.html. | |
| app_id | Yes | The app id, as returned by search_apps or create_app. Starts with app_. | |
| number | No | The version number to read from. Defaults to the newest version. |