R.1

Commands and tools used in this manual

Every rea command and MCP tool the captures ran, with what it answers, the capture file that holds its output, and the section that explains it.

rea 6.7.0 has 153 CLI commands and 207 MCP tools. binary_session reports these counts in its catalog (the capture). The capture kit ran 17 one-shot commands and 13 tools, plus rea mcp and the two MCP methods that every session starts with. CLI names join words with - and MCP names with _. Three native commands map to tools with other names: function calls analyze_function, decompile calls procedure_pseudo_code, and analyze calls binary_overview. The capture passed --format json to every command and --filter-output with a key list where a record was too large to keep whole (the capture).

The output flags --format, --filter-output, --token-limit, and --token-offset accept the form --flag=value, as in --format=json. The setup runs used the same form for --skill=false.

CLI commands

CommandAnswersRecorded outputSection
rea doctor --provider ghidrawhether the provider and its environment are healthy, one check per rowoutput2.2
rea capabilitiesthe operations of each provider in groups, with the availability, the effects, and the limitations of each group, and the availability of each provideroutput2.3
rea inspect-artifact <path>the content-addressed artifact graph of a file or packageoutput3.1
rea inspect-binary-layout <path>ELF sections, symbols, and relocations through the pwntools profile, Linux x64 only, so it fails on macOS with capability_unavailableoutput3.2
rea inspect-macho <path>Mach-O load commands, segments, sections, imports, exports, and build metadataoutput3.2
rea analyze <path> --provider ghidrabinary_overview: the document, its segments, and the procedure and string countsoutput, output3.4
rea function <path> <name> --provider ghidrathe analyze_function dossier of one procedureoutputs4.6
rea decompile <path> <name> --provider ghidrathe procedure_pseudo_code of one procedureoutputs4.6
rea address-to-file-offset <path> <address> --provider ghidrathe file offset of one virtual addressoutput3.3
rea inspect-evidence-bundle '{"path":..., "detail": "summary"}'one row per record of a bundle, without the payloadsoutputs5.4
rea evidence-export <bundle> <out>a canonical copy of a bundle, keys sortedoutput, output5.4
rea evidence-import <bundle>validation of every record id and manifest in a bundle, and the refusal of a bundle whose ids do not verifyoutput, output5.4
rea compare <left> <right>the two bundles by record membership and unknown revisionsoutput5.5
rea analyze-javascript-application <dir>the application graph of a JavaScript or Electron application, without running itoutput, output6.1
rea inspect-analysis-view <request.json>a summary or one page of a saved recordoutput, output6.1
rea inspect-wasm-artifact <path>the validation result, the sections, and the import and export interface of one WebAssembly module, from WABT 1.0.42output6.2
rea setup --client claude_code --skill=falsethe plan or the result of writing the rea entry into the Claude Code configurationoutput, output, output8.1
rea mcpthe MCP server over stdiooutputs, output8.1

The CLI documents its exit status. It is 0 when the operation completed, with partial evidence or open questions allowed. It is 1 when it could not complete, and 128 + N when signal N ended the process. Three commands exited 1 in the capture. They are inspect-binary-layout on a Mach-O file, evidence-import on a bundle from rea 6.5.0, and one setup dry run. An explicit --provider wins over REA_ANALYSIS_PROVIDER, and with neither set rea uses the single available provider that supports the target.

MCP methods and tools

NameAnswersHintsCLI commandRecorded outputSection
initializethe negotiated protocol version, the server capabilities, serverInfo, and the instruction stringmethodoutput8.1
tools/listall 207 tools with schemas and annotationsmethodoutput8.1
open_binarythe opened target: path, format, kind, SHA-256, architecture, with the provider bound and not startedopen worldnoneoutput, output4.1
binary_sessionthe current target, binding, run id, tool availability, client features, and server identityopen worldnoneoutput8.1
list_proceduresevery analyzed procedure as address and name, with thunk and external flagsnoneoutput4.2
procedure_assemblythe assembly of one procedure as one stringnoneoutput4.3
xrefsthe addresses that reference one addressrea xrefsoutput4.4
list_stringsevery defined string with encoding, termination, and byte lengthnoneoutput4.5
analyze_functionthe dossier of one procedurerea functionoutput, output, output, output, output, output, output4.6
export_evidence_bundlethe path, byte count, record count, and unknown count of the bundle it wrotedestructivenoneoutput, output5.4
import_evidence_bundlethe records imported and the new totalnoneoutput5.4
compare_functionstwo dossiers in eight dimensionsnoneoutput, output5.5
verify_reconstructionpass, fail, or unknown for each declared claimnoneoutput7.1
close_binarynull, after the provider and the ephemeral project are gonedestructive, not idempotentnoneoutput, output4.1
inspect_wasm_artifactthe WABT validation, sections, and interface of one WebAssembly module, as Evidenceopen worldrea inspect-wasm-artifactoutput6.2

The hints column reads the four annotations of each tool in tools/list: readOnlyHint, destructiveHint, idempotentHint, and openWorldHint. An empty cell means read-only false, destructive false, idempotent true, and open world false, which is the shape of most analysis tools. "None" in the CLI column means the tool is one of the 65 that have no CLI command.

Environment variables the capture set

VariableEffect at 6.7.0Documented in
GHIDRA_INSTALL_DIRthe Ghidra installation, an absolute path
JAVA_HOMEthe JDK, an absolute path
REA_GHIDRA_STARTUP_TIMEOUT_MSthe startup deadline, 330,000 ms by default
REA_ANALYSIS_PROVIDERthe standing provider choice that --provider and provider_id override
REA_MCP_INPUT_SCHEMA_PROFILEcompact renders every advertised input schema within 13,312 bytes
REA_MCP_MAX_RESPONSE_BYTESthe response budget, at least 10,485,760, read at startup
REA_WABT_BIN_DIRECTORYthe absolute directory that holds wasm-validate, wasm-objdump, and wasm2wat from WABT 1.0.42rea docs/wasm-artifacts.md, Offline WebAssembly artifacts
HOME and CLAUDE_CONFIG_DIRfor the setup runs only, a private work directory, so setup found and wrote only the copied test file

The capture kit also removed PWD and JAVA_TOOL_OPTIONS from the environment of every rea process (the capture). The paths in the records and the Java launch then stayed the same from run to run.

The kit did not set REA_KUNA_COMMAND, the absolute path of a kuna executable that you supply. Without it the Kuna provider reports not_configured (Section 2.3).

rea (rea-agents) with the Ghidra provider rea-agents 6.7.0, Ghidra 12.1.4 · 27dc42d · 2026-10-18 · Edition 2026.10