--json output follow the Envelope schema (version 1.0.0) — type, status, code, exit_code, message, hint, data, meta.
Envelope Structure
Envelope Fields
Meta Fields
Data Shapes
Thedata field structure depends on the command. Check meta.entity_type to determine the shape.
symbol (find_symbol, describe)
data is an array even for a single match. calls/called_by entries are [symbol, metadata] pairs; the metadata object carries line (1-indexed), column (0-indexed), receiver, and static_call.
search_result (search_symbols)
callers/calls (get_calls, find_callers)
Every call edge carries its call site:
call_line is 1-indexed (editor coordinate), call_column is 0-indexed (machine coordinate, like range columns). range objects stay 0-indexed throughout.document (search_documents)
Error Response
Machine-Readable Schema
For code generation or tooling integration, the formal JSON Schema is available at:Next Steps
Unix Piping
Consume the envelope with
jq, xargs, and Unix tools.CLI Reference
Commands that emit JSON envelopes.