Skip to content
Documentation

Reference

ctx_pack

Input contract and parameters for ctx_pack.

Status by featureReviewed September 2026

MCP tool · Planning tools

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.

actionstringRequired

Pack action to perform

Accepted: prcreatelistinforemoveinstallexportimportauto_loadsummary

applyboolean

Apply after import (default: false)

authorstring

Package author (for create)

basestring

Git base ref for PR diff

depthinteger

Impact depth for pr action (default: 3)

descriptionstring

Package description (for create)

diffstring

Git diff --name-status text input

enableboolean

Enable auto-load (default: true)

filestring

File path for import/export

formatstring

Output format: markdown|json

Accepted: markdownjson

layersarray

Layers to include: knowledge|graph|session|patterns|gotchas

levelinteger

Detail level 1-3 (higher = more detail)

namestring

Package name

project_rootstring

Project root directory

scopestring

Package scope (e.g. @org/name)

tagsarray

Tags for categorization (for create)

versionstring

Package version (semver)

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "action": {
      "description": "Pack action to perform",
      "enum": [
        "pr",
        "create",
        "list",
        "info",
        "remove",
        "install",
        "export",
        "import",
        "auto_load",
        "summary"
      ],
      "type": "string"
    },
    "apply": {
      "description": "Apply after import (default: false)",
      "type": "boolean"
    },
    "author": {
      "description": "Package author (for create)",
      "type": "string"
    },
    "base": {
      "description": "Git base ref for PR diff",
      "type": "string"
    },
    "depth": {
      "description": "Impact depth for pr action (default: 3)",
      "type": "integer"
    },
    "description": {
      "description": "Package description (for create)",
      "type": "string"
    },
    "diff": {
      "description": "Git diff --name-status text input",
      "type": "string"
    },
    "enable": {
      "description": "Enable auto-load (default: true)",
      "type": "boolean"
    },
    "file": {
      "description": "File path for import/export",
      "type": "string"
    },
    "format": {
      "description": "Output format: markdown|json",
      "enum": [
        "markdown",
        "json"
      ],
      "type": "string"
    },
    "layers": {
      "description": "Layers to include: knowledge|graph|session|patterns|gotchas",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "level": {
      "description": "Detail level 1-3 (higher = more detail)",
      "type": "integer"
    },
    "name": {
      "description": "Package name",
      "type": "string"
    },
    "project_root": {
      "description": "Project root directory",
      "type": "string"
    },
    "scope": {
      "description": "Package scope (e.g. @org/name)",
      "type": "string"
    },
    "tags": {
      "description": "Tags for categorization (for create)",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "version": {
      "description": "Package version (semver)",
      "type": "string"
    }
  },
  "required": [
    "action"
  ],
  "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
WORKFLOW: create -> export -> import -> install for sharing context state.
ANTIPATTERN: NOT for ephemeral session save (use ctx_session).
Context Package Manager — create, install, manage portable context packages
with knowledge, graph, session patterns, and gotchas.
Actions: pr, create, list, info, remove, install, export, import, auto_load, summary.
Saves tokens: pre-built context state (avoids re-building).
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