Skip to main content

Module discovery

Module discovery 

Source

Structs§

CapDoc
One row per registered capability, summarised for the LLM-facing “## Capability docs (lazy-load via read_file)” block in pilot’s system prompt. Includes only providers that registered with a non-empty capability_md_path. The path is what we hand the LLM verbatim; the executor’s read_file builtin resolves it (it must be readable from the executor’s host workspace).

Functions§

cap_md_index
Returns a CapDoc per capability that has a non-empty capability_md_path. Pilot lists these in the system prompt and the LLM read_files them lazily.
discover
Query atlas for every MCP-transport capability. Returns one (provider_id, Capability) pair per LLM-callable contract; callers pull description + input_schema_json out of params.kind themselves. Capabilities with missing or non-MCP params are dropped with a warning.
llm_name
LLM-facing tool name = <area>_<leaf> of a contract_id, where <area> is the segment immediately before the leaf. Examples: robonix/primitive/camera/snapshotcamera_snapshot robonix/primitive/lidar/snapshotlidar_snapshot robonix/primitive/chassis/movechassis_move robonix/service/memory/searchmemory_search robonix/service/navigation/navigatenavigation_navigate