On this page
Reference
ctx_pack
Input contract and parameters for ctx_pack.
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.
actionstringRequiredPack action to perform
Accepted: prcreatelistinforemoveinstallexportimportauto_loadsummary
applybooleanApply after import (default: false)
authorstringPackage author (for create)
basestringGit base ref for PR diff
depthintegerImpact depth for pr action (default: 3)
descriptionstringPackage description (for create)
diffstringGit diff --name-status text input
enablebooleanEnable auto-load (default: true)
filestringFile path for import/export
formatstringOutput format: markdown|json
Accepted: markdownjson
layersarrayLayers to include: knowledge|graph|session|patterns|gotchas
levelintegerDetail level 1-3 (higher = more detail)
namestringPackage name
project_rootstringProject root directory
scopestringPackage scope (e.g. @org/name)
tagsarrayTags for categorization (for create)
versionstringPackage 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 & versions
- 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