The CLI in src/main.zig:283-347 prints human-readable text to stdout. There is no machine-readable mode, so scripts that want to pipe into jq must spin up the full MCP server and speak JSON-RPC.
Suggested fix
Add a --json flag. When set, emit a single JSON document to stdout with the same fields the MCP tool would return (text, cursor_row, cursor_col, cols, rows, optionally matched).
The CLI in
src/main.zig:283-347prints human-readable text to stdout. There is no machine-readable mode, so scripts that want to pipe intojqmust spin up the full MCP server and speak JSON-RPC.Suggested fix
Add a
--jsonflag. When set, emit a single JSON document to stdout with the same fields the MCP tool would return (text, cursor_row, cursor_col, cols, rows, optionally matched).