Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
openclaw docs
Search the live OpenClaw docs index from the terminal. The command shells out to the public Mintlify-hosted docs MCP search endpoint at https://docs.openclaw.ai/mcp.SearchOpenClaw and renders the results in your terminal.
Usage
| Argument | Description |
|---|---|
[query...] | Free-form search query. Multi-word queries are joined with spaces and sent as one. |
Examples
openclaw docs prints the docs entrypoint URL plus a sample search command instead of running a search.
How it works
openclaw docs invokes the mcporter CLI to call the docs search MCP tool, then parses the Title: / Link: / Content: blocks from the tool output into a list of results.
To resolve mcporter, OpenClaw checks in order:
mcporteronPATH(used directly if present).pnpm dlx mcporter ...ifpnpmis installed.npx -y mcporter ...ifnpxis installed.
pnpm (npm install -g pnpm).
The search call uses a fixed 30 second timeout. Result snippets are truncated to ~220 characters per entry.
Output
In a rich (TTY) terminal, results render as a heading followed by a bullet list. Each bullet shows the page title, the linked docs URL, and a short snippet on the next line. Empty results print “No results.”. In non-rich output (piped,--no-color, scripts), the same data renders as Markdown:
Exit codes
| Code | Meaning |
|---|---|
0 | Search succeeded (including zero-result responses). |
1 | The MCP tool call failed; stderr is printed inline. |