Tools overview
The complete context-mode toolkit — sandboxed execution, knowledge-base search, web fetching, and session insight, exposed as ctx_* MCP tools.
context-mode exposes its capabilities as a small set of ctx_* MCP tools. They
fall into three groups: process data without reading it, recall what
you've already seen, and operate the plugin itself.
Not sure which to reach for? See Tool selection for the decision hierarchy that maps each task to the right tool.
Process
ctx_execute
Run code in a 12-language sandbox; only stdout enters context.
ctx_execute_file
Read a file into the sandbox and derive the answer from it.
ctx_batch_execute
Run many commands in parallel, auto-index, and search in one round trip.
Recall
ctx_search
Query the unified FTS5 knowledge base with BM25 ranking.
ctx_index
Store content in the knowledge base for later search.
ctx_fetch_and_index
Fetch a URL, convert to markdown, and index it — no raw HTML in context.
Operate
ctx_stats
See how much context you saved, with a per-tool breakdown.
ctx_doctor
Diagnose runtimes, the knowledge base, and hooks.
ctx_upgrade
Update context-mode and reconfigure hooks.
ctx_purge
Wipe the knowledge base and reset session stats.
ctx_insight
Open the Insight analytics dashboard in your browser.