Skip to content
Documentation

Reference

ctx_transcript_compact

Input contract and parameters for ctx_transcript_compact.

Status by featureReviewed September 2026

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_topicstring

Topic to prioritise in summary

fresh_tail_tokensinteger

Recent tokens to keep verbatim

messagesarrayRequired

OpenAI message array to compact

protect_min_messagesinteger

Minimum 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 & 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