response_outline
Inspect the structure of a large saved JSON response to see keys, types, and array lengths before exploring further.
Instructions
response_outline
Returns a high-level structural summary of a large JSON response file that was saved to disk by invoke. It does not return the actual data — only the shape, keys, array lengths, and hints that help decide how to explore the file next.
When to use
Use this tool immediately after invoke returns a fileRef because the response body was too large. It is the first and mandatory step in exploring a saved response file.
When NOT to use
Do NOT use
bash,cat,head,tail,file,open,less,more, or any external command to readfileRef.path.Do NOT ask the user to open the file manually.
Do NOT try to guess the file contents. Only the
response_*tools may read saved response files.
Parameters
path(required): The absolute file path fromfileRef.pathreturned byinvoke.maxDepth(optional): Maximum recursion depth when inspecting nested objects and arrays. Default is 3.maxArrayItems(optional): How many array items to inspect for detailed key/type information. Default is 5.
Returns
A structural outline containing:
type: root JSON type (object,array, etc.).size: file size in bytes.lineCount: number of lines in the file.depth: maximum nesting depth inspected.structure: recursive map of keys, types, array lengths, and sample items.schemaHint: one-line summary of the top-level shape.compressionHints: suggestedresponse_compresscalls to shrink the file.navigationHints: top-level paths and arrays with lengths, useful forresponse_slice.
Example workflow
invoke returns fileRef.path = /.../responses/example-get-pets-abc123.json
↓
response_outline({"path": "/.../responses/example-get-pets-abc123.json"})
↓
response_compress({"path": "...", "jsonPath": "pets", "mode": "first_of_array"})
↓
response_slice({"path": "...", "jsonPath": "pets.0"})Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | required,Absolute path returned in fileRef.path | |
| maxDepth | No | optional,Max recursion depth (default 3) | |
| maxArrayItems | No | optional,How many array items to inspect (default 5) |