Skip to content
Documentation

Reference

ctx_explore

Input contract and parameters for ctx_explore.

Status by featureReviewed September 2026

MCP tool · Search & code intelligence

Call this tool through your MCP client. Its availability depends on your active configuration and profile.

This registry contract is separate from the SDK. For terminal commands, use the CLI reference.

Example call

JSON for an MCP client. Replace example paths and queries with your own project values.

{
  "name": "ctx_explore",
  "arguments": {
    "query": "Where is authentication checked?",
    "path": "."
  }
}

Parameters

Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.

citationboolean

Emit only the <final_answer> citation block

max_turnsinteger

Exploration depth (1-8, default 3)

pathstring

Project root

querystringRequired

Natural-language question or symbol names

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "citation": {
      "description": "Emit only the <final_answer> citation block",
      "type": "boolean"
    },
    "max_turns": {
      "description": "Exploration depth (1-8, default 3)",
      "type": "integer"
    },
    "path": {
      "description": "Project root",
      "type": "string"
    },
    "query": {
      "description": "Natural-language question or symbol names",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}

Runtime description

The following is the tool's own agent-facing description, reproduced from the reviewed registry. It can contain implementation terminology; it does not expand the public stability commitment.

Read the agent-facing description
Iterative, deterministic code exploration → compact file:line citations.
Runs a bounded multi-turn loop (BM25 + static call/import graph + AST symbols)
and returns a <final_answer> block of `path:start-end` spans instead of bodies.
USE WHEN: locating WHERE behavior lives across many files, cheaply.
vs ctx_compose: compose inlines bodies in one shot; explore returns citations
over N turns (far fewer tokens). citation=true emits only the block.
Sources & versions3 references Reviewed
  • mcp_manifest.rsrust/src/core/mcp_manifest.rsReviewed checkout
  • registry.rsrust/src/server/registry.rsReviewed checkout
  • dynamic_tools.rsrust/src/server/dynamic_tools.rsReviewed checkout
Core checkout
50fbff09c9
Reviewed runtime
3.10.2
SDK release
1.1.0

Separate baselines for source, CLI/configuration and SDK contracts. Review does not certify every platform or integration.

Versions & compatibility