On this page
Reference
ctx_transcript_compact
Input contract and parameters for ctx_transcript_compact.
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.
focus_topicstringTopic to prioritise in summary
fresh_tail_tokensintegerRecent tokens to keep verbatim
messagesarrayRequiredOpenAI message array to compact
protect_min_messagesintegerMinimum recent messages to keep
Exact JSON schema
Inspect the complete input schema
{
"properties": {
"focus_topic": {
"description": "Topic to prioritise in summary",
"type": "string"
},
"fresh_tail_tokens": {
"description": "Recent tokens to keep verbatim",
"type": "integer"
},
"messages": {
"description": "OpenAI message array to compact",
"items": {
"type": "object"
},
"type": "array"
},
"protect_min_messages": {
"description": "Minimum recent messages to keep",
"type": "integer"
}
},
"required": [
"messages"
],
"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
Compact an OpenAI-format message array deterministically:
keep system + fresh tail verbatim, replace older turns with a recoverable
summary, offload raw turns into session memory (indexed for recall).
Returns JSON {messages, stats}. tool_call/tool_result pairs never split.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