github_mcp.read_files_batch
Read 1–20 safe UTF-8 files from the same refreshed default-branch snapshot, returning content and checksums in one response. Use it to batch-fetch repository files within a 2 MB total limit.
Instructions
Read 1–20 safe UTF-8 files from the same refreshed default-branch snapshot. Returns a files array with content and checksums; total content is limited to 2 MB. Use read_file for job workspace or binary reads.
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": {
"repository": "<repository>",
"paths": "<paths>"
},
"name": "github_mcp.read_files_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | List of 1–20 repository-relative file paths. | |
| repository | Yes | Allowlisted owner/repo identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| message | No | ||
| error_code | No |