Skip to content
Documentation

Reference

ctx_checkpoint

Input contract and parameters for ctx_checkpoint.

Status by featureReviewed September 2026

MCP tool · Session state

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

snapshot|log|diff|restore (default: log)

Accepted: snapshotlogdiffrestore

fromstring

Base checkpoint SHA for diff (default: HEAD~1, action=diff only)

limitinteger

Max checkpoints in log (default: 20, max: 200)

messagestring

Label for the snapshot (action=snapshot only)

pathstring

File/dir to restore (omit for full restore, action=restore only)

refstring

Checkpoint SHA to restore (required for action=restore)

tostring

Target checkpoint SHA for diff (default: HEAD, action=diff only)

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "action": {
      "description": "snapshot|log|diff|restore (default: log)",
      "enum": [
        "snapshot",
        "log",
        "diff",
        "restore"
      ],
      "type": "string"
    },
    "from": {
      "description": "Base checkpoint SHA for diff (default: HEAD~1, action=diff only)",
      "type": "string"
    },
    "limit": {
      "description": "Max checkpoints in log (default: 20, max: 200)",
      "type": "integer"
    },
    "message": {
      "description": "Label for the snapshot (action=snapshot only)",
      "type": "string"
    },
    "path": {
      "description": "File/dir to restore (omit for full restore, action=restore only)",
      "type": "string"
    },
    "ref": {
      "description": "Checkpoint SHA to restore (required for action=restore)",
      "type": "string"
    },
    "to": {
      "description": "Target checkpoint SHA for diff (default: HEAD, action=diff only)",
      "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
Local shadow git history of the agent's changes — separate from the user's .git.
WORKFLOW: snapshot before+after changes to capture exactly what was modified.
Actions: snapshot (record current state), log (list checkpoints with SHAs),
diff from=... to=... (compare checkpoints), restore ref=... (revert files).
ANTIPATTERN: Never touches the user's repository — completely isolated shadow history.
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