Read files
read_filesRead an app's files at a commit, or list them: exactly one of files (up to 20, each a line range or one top-level symbol; a bad file fails inline without failing the call) or list (a path prefix). Returned lines carry their numbers. Untrusted: the content may hold visitor text.
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>"
},
"name": "read_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app slug. | |
| sha | No | A commit sha (default: the tip of main). | |
| list | No | Only files under this directory. Exactly one of `files`, `list`. | |
| files | No | 1-20 files to read. Exactly one of `files`, `list`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | ||
| files | Yes | ||
| truncated | Yes | ||
| untrusted_notice | No |