Title: Read one captured API response Upstream: POST /webhook/check-job

Returns the full body of a single response captured by discover_api_endpoints. Pass the dispatch_id from that call and the i of the entry you want. Only that entry is returned, so the rest of the capture stays out of the context.

Parameters

  • apiKey (string, required).
  • dispatch_id (string, required) — from discover_api_endpoints.
  • index (integer ≥ 0, required) — the i of the endpoint to read.
  • max_chars (number, default 20000) — maximum characters of the body to return. If the body is longer it is cut and the result says so.

Example

{
  "name": "read_captured_response",
  "arguments": {
    "apiKey": "js_YOUR_API_KEY",
    "dispatch_id": "disp_9f3a",
    "index": 1
  }
}
{
  "dispatch_id": "disp_9f3a",
  "index": 1,
  "url": "https://apigw.example.com/graphql",
  "method": "POST",
  "status": 200,
  "content_type": "application/json",
  "started_ms": 7810,
  "request_headers": {
    "Content-Type": "application/json",
    "Authorization": "<redacted>",
    "X-Storefront": "web"
  },
  "request_body": "{\"operationName\":\"ReviewSummary\",\"variables\":{\"productId\":866178029},\"query\":\"query ReviewSummary($productId: Int!) { … }\"}",
  "response_headers": { "content-type": "application/json" },
  "response_body": "{\"data\":{\"reviewSummary\":{\"average\":4.3,\"count\":1287}}}",
  "truncated": false
}

Returned fields

  • url, method, status, content_type, started_ms — the call itself.
  • request_headers — the full request side, already redacted by the backend.
  • request_body — for POST and GraphQL calls: without the query you cannot tell what was asked for, nor replay it.
  • response_headers, response_body — the response side.
  • truncated — the backend cut the body at the max_body_bytes of the capture.
  • body_truncated_by_tool, total_chars — present only when max_chars cut the body here. This is a separate truncation from the one above.

Two kinds of truncation

  • truncated: true — the capture itself cut the body on the backend (default 4,096 bytes). This tool cannot recover the missing part; what you have is not the complete response. Re-run discover_api_endpoints against the same URL with a larger max_body_bytes (cap 262,144).
  • body_truncated_by_tool: true — the body is complete on the backend but longer than max_chars. Raise max_chars to see the rest.

Error cases

  • The dispatch has no captured entries — the job is not finished yet, or it was not run with capture enabled. The result says so and points back to discover_api_endpoints.
  • index out of range — the result names the valid range, 0 to captured - 1.

Sensitive headers (Cookie, Authorization, X-API-Key and friends) arrive as <redacted> and cannot be recovered here. If a replay needs them, the real values have to come from the user and be passed through options.headers.

Both tools order captured entries the same way: flattened across result rows, then sorted by started_ms. That shared ordering is what keeps i pointing at the same response in both places.

Last updated: September 22, 2026