fetch_content
Read exact line ranges from indexed GitHub files using build ID, path, and revision. Request up to 120 lines or 16,000 characters for cited source excerpts.
Instructions
Read a specific indexed file range. Use path and revision from get_build or search_build_content. Lines are 1-based and inclusive; request only what is needed, up to 120 lines / 16,000 characters. A changed revision requires a fresh lookup.
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": {
"build_id": "<build_id>",
"path": "<path>",
"revision": "<revision>",
"start_line": "<start_line>",
"end_line": "<end_line>"
},
"name": "fetch_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| build_id | Yes | ||
| end_line | Yes | ||
| revision | Yes | ||
| start_line | Yes |