On this page
Reference
ctx_session
Input contract and parameters for ctx_session.
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.
Example call
JSON for an MCP client. Replace example paths and queries with your own project values.
{
"name": "ctx_session",
"arguments": {
"action": "status"
}
}Parameters
Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.
actionstringRequiredstatus|handoff|load|save|task|finding|decision|compact|restore|list|… (invalid action lists all)
keep_recent_turnsintegercompact: trailing user turns kept verbatim (default 6)
session_idstringOmit for latest
valuestringExact JSON schema
Inspect the complete input schema
{
"properties": {
"action": {
"description": "status|handoff|load|save|task|finding|decision|compact|restore|list|… (invalid action lists all)",
"type": "string"
},
"keep_recent_turns": {
"description": "compact: trailing user turns kept verbatim (default 6)",
"type": "integer"
},
"session_id": {
"description": "Omit for latest",
"type": "string"
},
"value": {
"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
Session memory. save at session end, load at start, status = snapshot;
task|finding|decision record progress (value=text).
ANTIPATTERN: permanent project knowledge → ctx_knowledge.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