Read a capture's records
capture_recordsPage through a .gputrace command stream to inspect records and resolve their Metal call names. Use offset, limit, and field filters to analyze GPU work without Xcode.
Instructions
Returns one page of the records of a .gputrace command stream, with their Metal call names when known.
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": {
"capture": "<capture>"
},
"name": "capture_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | default 50, at most 500 | |
| fields | No | result paths to keep, dotted: common.frame_pacing | |
| offset | No | default 0 | |
| capture | Yes | a .gputrace bundle inside METAL_TRACE_OUT or METAL_TRACE_READ |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| next_offset | Yes |