Skip to content

McpToolCallThreadItem

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  3453118238["v2_protocol.McpToolCallThreadItem"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 3453118238
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

A thread item and its recorded lifecycle times. The payload stays flat on the wire.

Source code in src/codexed/models/v2_protocol.py
class McpToolCallThreadItem(CodexBaseModel):
    """A thread item and its recorded lifecycle times. The payload stays flat on the wire."""

    completed_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item completed, if recorded.
    """
    started_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item started, if recorded.
    """
    app_context: McpToolCallAppContext | None = None
    arguments: Any
    duration_ms: int | None = None
    """
    The duration of the MCP tool call in milliseconds.
    """
    environment_id: str | None = None
    """
    Registration scope, not necessarily the server's execution environment.
    """
    error: McpToolCallError | None = None
    id: str
    mcp_app_resource_uri: str | None = None
    """
    Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.
    """
    mcp_app_ui: McpAppUi | None = None
    """
    Presentation captured from the invoked descriptor; absent in older history.
    """
    plugin_id: str | None = None
    read_only_hint: bool | None = None
    result: McpToolCallResult | None = None
    server: str
    status: McpToolCallStatus
    tool: str
    type: Literal["mcpToolCall"] = "mcpToolCall"

completed_at_ms class-attribute instance-attribute

completed_at_ms: int | None = None

Unix timestamp in milliseconds when the item completed, if recorded.

duration_ms class-attribute instance-attribute

duration_ms: int | None = None

The duration of the MCP tool call in milliseconds.

environment_id class-attribute instance-attribute

environment_id: str | None = None

Registration scope, not necessarily the server's execution environment.

mcp_app_resource_uri class-attribute instance-attribute

mcp_app_resource_uri: str | None = None

Legacy compatibility field; prefer mcpAppUi.resourceUri when available.

mcp_app_ui class-attribute instance-attribute

mcp_app_ui: McpAppUi | None = None

Presentation captured from the invoked descriptor; absent in older history.

started_at_ms class-attribute instance-attribute

started_at_ms: int | None = None

Unix timestamp in milliseconds when the item started, if recorded.

:fa-brands-github: Show source on GitHub