Skip to content
Documentation

Reference

ctx_compare

Input contract and parameters for ctx_compare.

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.

commandstring

Shell command for the shell pipeline (pair with output)

contentstring

Inline content to preview (read pipeline)

extstring

Extension for inline content, e.g. rs, json, csv

outputstring

Command output to preview (shell pipeline)

pathstring

File to preview via the read/aggressive pipeline

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "command": {
      "description": "Shell command for the shell pipeline (pair with output)",
      "type": "string"
    },
    "content": {
      "description": "Inline content to preview (read pipeline)",
      "type": "string"
    },
    "ext": {
      "description": "Extension for inline content, e.g. rs, json, csv",
      "type": "string"
    },
    "output": {
      "description": "Command output to preview (shell pipeline)",
      "type": "string"
    },
    "path": {
      "description": "File to preview via the read/aggressive pipeline",
      "type": "string"
    }
  },
  "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
Preview compression — original vs the bytes lean-ctx would emit, with token counts + line diff.
INPUT (pick one): path=<file> (read pipeline) | content=<text> [+ ext=rs|json|csv] (read pipeline) | command=<cmd> + output=<text> (shell pipeline).
Read-only: never changes files, cache, or session. Use to decide whether a mode/pipeline is worth it.
ANTIPATTERN: not for reading files (use ctx_read) or restoring archived output (use ctx_expand).
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