Skip to content
Documentation

Reference

ctx_expand

Input contract and parameters for ctx_expand.

Status by featureReviewed September 2026

MCP tool · Read, search & shell

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.

Parameters

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

actionstring

retrieve|list|search_all

end_lineinteger
headinteger
idstring

Archive ID, shell_* job ID, or @F1 ref

json_keysboolean
json_pathstring

e.g. data.items.0

querystring
session_idstring
start_lineinteger
tailinteger

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "action": {
      "description": "retrieve|list|search_all",
      "type": "string"
    },
    "end_line": {
      "type": "integer"
    },
    "head": {
      "type": "integer"
    },
    "id": {
      "description": "Archive ID, shell_* job ID, or @F1 ref",
      "type": "string"
    },
    "json_keys": {
      "type": "boolean"
    },
    "json_path": {
      "description": "e.g. data.items.0",
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "search": {
      "type": "string"
    },
    "session_id": {
      "type": "string"
    },
    "start_line": {
      "type": "integer"
    },
    "tail": {
      "type": "integer"
    }
  },
  "required": [],
  "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
Retrieve archived tool output: see [Archived:ID] → ctx_expand id=ID (zero-loss, original preserved). head/tail/search filter lines; action=list|search_all browses/queries archives.
ANTIPATTERN: not for project files — use ctx_read or ctx_compose.
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
Installed 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