Read patch by file or chunk
antigravity_read_patchRead paginated patch content for a coding task, optionally filtered to one changed path, with each chunk bound to the full preview hash for verifiable, resumable review.
Instructions
Read at most 50000 UTF-16 units of the current patch, optionally selecting a changed path. Bind every read to the full preview hash. Follow nextOffset until hasMore is false. Use preview with includePatch false for metadata.
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": {
"taskId": "<taskId>",
"expectedSha256": "<expectedSha256>"
},
"name": "antigravity_read_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| limit | No | ||
| offset | No | ||
| taskId | Yes | ||
| expectedSha256 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| text | No | ||
| error | No | ||
| length | No | ||
| offset | No | ||
| sha256 | No | ||
| taskId | No | ||
| hasMore | No | ||
| nextOffset | No | ||
| offsetUnit | No | ||
| totalLength | No | ||
| contentSha256 | No |