field_meta
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| AgentCapabilitiesMeta aclientp.schema.field_meta ``_meta`` on ``InitializeResponse.agentCapabilities``. |
||
| AuthCapabilitiesMeta aclientp.schema.field_meta ``_meta`` on :class:`\~aclientp.schema.capabilities.AuthCapabilities`. |
||
| AvailableCommandMeta aclientp.schema.field_meta Zed convention for ``_meta`` on available (slash) commands. |
||
| ClaudeCodeAgentCapabilitiesMeta aclientp.schema.field_meta ``claudeCode`` entry of :class:`AgentCapabilitiesMeta`. |
||
| ClaudeCodeNewSessionMeta aclientp.schema.field_meta Claude Code-specific metadata nested under ``claudeCode``. |
||
| ClaudeCodeSessionOptions aclientp.schema.field_meta Claude Agent SDK ``Options`` forwarded via ``_meta.claudeCode.options``. |
||
| ClaudeCodeToolMeta aclientp.schema.field_meta Claude Code-specific metadata attached to tool call updates. |
||
| ClientCapabilitiesMeta aclientp.schema.field_meta |
||
| GatewayAuthMeta aclientp.schema.field_meta ``_meta`` on ``authenticate`` requests using the ``gateway`` method. |
||
| GatewayConfig aclientp.schema.field_meta Gateway configuration for routing API calls through a custom endpoint. |
||
| InitializeResponseMeta aclientp.schema.field_meta Top-level ``_meta`` on ``InitializeResponse`` (claude-agent-acp, codex-acp). |
||
| McpServerInfo aclientp.schema.field_meta The MCP server an ``mcp__*`` tool belongs to. |
||
| ModelTokenCount aclientp.schema.field_meta Token counts of one model in :class:`Quota`. |
||
| NewSessionMeta aclientp.schema.field_meta ``_meta`` on session setup requests to claude-agent-acp. |
||
| PromptResponseMeta aclientp.schema.field_meta ``_meta`` on the ``session/prompt`` response. |
||
| PromptSuggestion aclientp.schema.field_meta One predicted next prompt. |
||
| PromptSuggestionsValue aclientp.schema.field_meta ``promptSuggestions`` entry of :class:`SessionInfoUpdateMeta`. |
||
| Quota aclientp.schema.field_meta ``quota`` entry of :class:`PromptResponseMeta`. |
||
| SDKMessageFilter aclientp.schema.field_meta Filter for raw SDK messages emitted as ``_claude/sdkMessage``. |
||
| SessionInfoUpdateMeta aclientp.schema.field_meta ``_meta`` on ``session_info_update`` notifications (claude-agent-acp). |
||
| SteeringOptions aclientp.schema.field_meta ``steering`` entry of :class:`SteeringRequestMeta`. |
||
| SteeringRequestMeta aclientp.schema.field_meta ``_meta`` on the ``_session/steering`` extension request. |
||
| SteeringSupport aclientp.schema.field_meta ``steering`` entry of :class:`InitializeResponseMeta`. |
||
| SubagentSessionInfoMeta aclientp.schema.field_meta Links a tool call to the subagent session it spawned. |
||
| TerminalAuthMethodMeta aclientp.schema.field_meta |
||
| TerminalAuthValue aclientp.schema.field_meta Command a client runs in a terminal to authenticate. |
||
| TerminalExitMeta aclientp.schema.field_meta Signals that the process of a display-only terminal has exited. |
||
| TerminalInfoMeta aclientp.schema.field_meta Requests creation of a display-only terminal in the client. |
||
| TerminalOutputMeta aclientp.schema.field_meta Terminal output for a display-only terminal. |
||
| TokenCount aclientp.schema.field_meta Token counts of a turn or model (shape shared by claude-agent-acp and codex-acp). |
||
| ToolCallMeta aclientp.schema.field_meta Zed conventions for ``_meta`` on tool calls. |
||
| ToolUpdateMeta aclientp.schema.field_meta ``_meta`` of ``tool_call`` and ``tool_call_update`` session updates. |
||
| UsageUpdateMeta aclientp.schema.field_meta |
🛈 DocStrings¶
Undocumented _meta field conventions used by ACP implementations.
The ACP protocol includes a generic _meta (field_meta) extension point on
most schema objects (via :class:~aclientp.schema.base.AnnotatedObject). Several
implementations — notably claude-agent-acp, codex-acp, and Zed — have
established conventions for what goes into these fields. None of these are part
of the official ACP specification.
This module provides typed dictionaries documenting every known convention so
that implementors can produce and consume them with type safety rather than
relying on raw dict[str, Any] access. Keys that are not valid Python
identifiers (terminal-auth, _claude/model, …) use the functional
TypedDict syntax so the types match the wire format exactly.
Sources (file paths only; line numbers change too often to be useful):
- @agentclientprotocol/claude-agent-acp v0.108.1, ACP v1 code path:
src/new-session-meta.ts, src/tool-calls/renderer.ts,
src/tool-calls/client-capabilities.ts, src/v1/acp-agent.ts,
src/v1/steering.ts, src/session-usage.ts, src/prompt-suggestions.ts,
src/client-system-prompt.ts, src/providers.ts
- @agentclientprotocol/codex-acp v2.7.0 (same terminal, quota, gateway and
steering conventions)
- Zed main at 3c2118dd6 (2026-11-18):
crates/agent_servers/src/acp/v1.rs (client capabilities, display-only
terminals, terminal auth), crates/acp_thread/src/acp_thread.rs
(tool_name, subagent_session_info, command_category)
JetBrains AIR extensions (_meta.jetbrains.air) are documented in
claude-agent-acp's docs/air-extensions.md and are not modelled here.
ClientCapabilitiesMeta
module-attribute
¶
ClientCapabilitiesMeta = TypedDict(
"ClientCapabilitiesMeta",
{
"terminal_output": bool,
"terminal_output_delta": bool,
"terminal-auth": bool,
"subagent-transcript": bool,
},
total=False,
)
_meta on :class:~aclientp.schema.capabilities.ClientCapabilities.
terminal_output: the client renders display-only terminals from :class:ToolUpdateMetaterminal keys. Without it, agents send shell output as plain content. Zed's v1 client sets it.terminal_output_delta: liketerminal_output, but output arrives as appendedterminal_output_deltachunks (claude-agent-acp, codex-acp).terminal-auth: the client can run terminal login methods. Legacy form of the standardclientCapabilities.auth.terminal; Zed's v1 client sets both.subagent-transcript: the client wants subagent transcripts (claude-agent-acp).
TerminalAuthMethodMeta
module-attribute
¶
TerminalAuthMethodMeta = TypedDict('TerminalAuthMethodMeta', {'terminal-auth': TerminalAuthValue})
_meta on an agent-type :class:~aclientp.schema.common.AuthMethod describing a
terminal login: the legacy form of a terminal auth method.
Zed runs the command for any agent's auth method that carries it, and builds one
itself for Gemini (gemini /auth).
UsageUpdateMeta
module-attribute
¶
UsageUpdateMeta = TypedDict(
"UsageUpdateMeta",
{"_claude/model": str, "_claude/rateLimit": dict[str, Any], "_claude/origin": dict[str, Any]},
total=False,
)
_meta on usage_update notifications (claude-agent-acp).
_claude/model: model of the last assistant message._claude/rateLimit: rate-limit info reported by the SDK._claude/origin: origin of the turn's result message.
AgentCapabilitiesMeta
¶
Bases: TypedDict
_meta on InitializeResponse.agentCapabilities.
Source code in src/aclientp/schema/field_meta.py
authStatus
instance-attribute
¶
Present (and empty) when the agent pushes its identity via the
_auth/status_update extension notification (claude-agent-acp, codex-acp).
claudeCode
instance-attribute
¶
claudeCode: ClaudeCodeAgentCapabilitiesMeta
Claude Code feature flags (claude-agent-acp).
AuthCapabilitiesMeta
¶
Bases: TypedDict
_meta on :class:~aclientp.schema.capabilities.AuthCapabilities.
Source code in src/aclientp/schema/field_meta.py
gateway
instance-attribute
¶
The client supports the gateway auth method, which routes API calls
through a custom Anthropic-protocol endpoint (claude-agent-acp, codex-acp).
AvailableCommandMeta
¶
Bases: TypedDict
Zed convention for _meta on available (slash) commands.
Source code in src/aclientp/schema/field_meta.py
command_category
instance-attribute
¶
Source of the command, used to group the completion popup.
Only Zed's native agent sets it; commands without it are grouped on their own.
ClaudeCodeAgentCapabilitiesMeta
¶
Bases: TypedDict
claudeCode entry of :class:AgentCapabilitiesMeta.
Source code in src/aclientp/schema/field_meta.py
promptQueueing
instance-attribute
¶
The agent queues prompts sent while a turn is running.
ClaudeCodeNewSessionMeta
¶
Bases: TypedDict
Claude Code-specific metadata nested under claudeCode.
Source code in src/aclientp/schema/field_meta.py
emitRawSDKMessages
instance-attribute
¶
emitRawSDKMessages: bool | list[SDKMessageFilter]
Also send raw SDK messages as the _claude/sdkMessage extension
notification: True for all, False (default) for none, or only
messages matching at least one filter.
options
instance-attribute
¶
options: ClaudeCodeSessionOptions
Options forwarded to the Claude Agent SDK.
ClaudeCodeSessionOptions
¶
Bases: TypedDict
Claude Agent SDK Options forwarded via _meta.claudeCode.options.
Only JSON-serializable options are listed; options that take callbacks
(hooks, canUseTool, abortController, stderr, …) cannot be sent
over ACP. Any other key is forwarded to the SDK as is. Types follow
@anthropic-ai/claude-agent-sdk 0.3.326, the version claude-agent-acp
v0.108.1 uses.
The adapter ignores cwd, includePartialMessages, permissionMode,
executable, pathToClaudeCodeExecutable and sessionId, and
merges env, extraArgs, mcpServers and disallowedTools with
its own values.
Source code in src/aclientp/schema/field_meta.py
additionalDirectories
instance-attribute
¶
Extra directories Claude Code may access. Prefer the standard
additionalDirectories field of the request.
allowDangerouslySkipPermissions
instance-attribute
¶
False removes bypassPermissions from the session (repeat it on
session/load). True cannot override the adapter's own restrictions.
allowedTools
instance-attribute
¶
Tools allowed without a permission prompt.
disallowedTools
instance-attribute
¶
Tools to remove; merged with the adapter's own list.
effort
instance-attribute
¶
Reasoning effort.
env
instance-attribute
¶
Environment variables for the Claude Code process; merged.
extraArgs
instance-attribute
¶
Extra CLI flags (None for flags without a value); merged.
fallbackModel
instance-attribute
¶
Model to use when the primary one is unavailable.
forwardSubagentText
instance-attribute
¶
Stream text produced by subagents to the client.
mcpServers
instance-attribute
¶
MCP server configs by name; merged with the request's mcpServers.
promptSuggestions
instance-attribute
¶
Predict the next prompt after each turn (adapter default: True).
resume
instance-attribute
¶
Session id of a previous Claude Code conversation to resume (session/new).
settingSources
instance-attribute
¶
Which settings files Claude Code loads (adapter default: all three).
strictMcpConfig
instance-attribute
¶
Only use the given MCP servers, ignoring configured ones.
tools
instance-attribute
¶
Built-in tools to expose: tool names, or {"type": "preset", "preset":
"claude_code"} (the default). [] disables all built-in tools.
ClaudeCodeToolMeta
¶
Bases: TypedDict
Claude Code-specific metadata attached to tool call updates.
Produced by claude-agent-acp (ToolUpdateMeta.claudeCode in
src/tool-calls/renderer.ts).
Source code in src/aclientp/schema/field_meta.py
mcpServer
instance-attribute
¶
mcpServer: McpServerInfo
The MCP server of an mcp__* tool, on a permission request.
nonExecutionKind
instance-attribute
¶
On a failed tool_call_update: why the tool never ran.
An open set, e.g. user-rejected, permission-rule, interrupted,
cancelled, automode-*. Absent when the tool executed, including
real failures.
parentToolUseId
instance-attribute
¶
For a tool call made inside a subagent: the tool use id of the
Agent / Task call that spawned the subagent.
toolName
instance-attribute
¶
The Claude Code tool name (e.g. Bash, Edit, Read).
Also carried as the standard ACP name field on the initial tool_call.
toolResponse
instance-attribute
¶
Structured output from the tool execution.
JetBrains AIR clients only get its status / isAsync markers; the
tool output itself is in the tool call content.
userFeedback
instance-attribute
¶
Text the user gave when rejecting the call. Only with nonExecutionKind.
GatewayAuthMeta
¶
Bases: TypedDict
_meta on authenticate requests using the gateway method.
Offered only to clients that declare :class:AuthCapabilitiesMeta gateway.
The agent maps the config to environment variables that override the
default API endpoint.
Source code in src/aclientp/schema/field_meta.py
GatewayConfig
¶
Bases: TypedDict
Gateway configuration for routing API calls through a custom endpoint.
Source code in src/aclientp/schema/field_meta.py
InitializeResponseMeta
¶
Bases: TypedDict
Top-level _meta on InitializeResponse (claude-agent-acp, codex-acp).
Source code in src/aclientp/schema/field_meta.py
McpServerInfo
¶
Bases: TypedDict
The MCP server an mcp__* tool belongs to.
Source code in src/aclientp/schema/field_meta.py
ModelTokenCount
¶
Bases: TypedDict
Token counts of one model in :class:Quota.
Source code in src/aclientp/schema/field_meta.py
NewSessionMeta
¶
Bases: TypedDict
_meta on session setup requests to claude-agent-acp.
Applies to session/new, session/load, session/resume and
session/fork. Defined as NewSessionMeta in src/new-session-meta.ts; the legacy keys
are read in src/v1/acp-agent.ts.
Source code in src/aclientp/schema/field_meta.py
additionalRoots
instance-attribute
¶
Legacy: extra workspace roots. The standard additionalDirectories
field takes precedence.
claudeCode
instance-attribute
¶
claudeCode: ClaudeCodeNewSessionMeta
Claude Code-specific session options.
disableBuiltInTools
instance-attribute
¶
Legacy shorthand for claudeCode.options.tools = []. An explicit
tools option takes precedence.
systemPrompt
instance-attribute
¶
Legacy: a full system prompt (string) or Claude Code preset options such as
{"append": "..."}. The standard systemPrompt field takes precedence.
PromptResponseMeta
¶
Bases: TypedDict
_meta on the session/prompt response.
Source code in src/aclientp/schema/field_meta.py
PromptSuggestion
¶
PromptSuggestionsValue
¶
Bases: TypedDict
promptSuggestions entry of :class:SessionInfoUpdateMeta.
Source code in src/aclientp/schema/field_meta.py
suggestions
instance-attribute
¶
suggestions: list[PromptSuggestion]
Predicted prompts; empty to clear an earlier prediction.
Quota
¶
Bases: TypedDict
quota entry of :class:PromptResponseMeta.
Source code in src/aclientp/schema/field_meta.py
model_usage
instance-attribute
¶
model_usage: list[ModelTokenCount]
Tokens by model, including subagents.
SDKMessageFilter
¶
Bases: TypedDict
Filter for raw SDK messages emitted as _claude/sdkMessage.
Source code in src/aclientp/schema/field_meta.py
SessionInfoUpdateMeta
¶
Bases: TypedDict
_meta on session_info_update notifications (claude-agent-acp).
Source code in src/aclientp/schema/field_meta.py
promptSuggestions
instance-attribute
¶
promptSuggestions: PromptSuggestionsValue
The prompt the agent expects the user to send next.
SteeringOptions
¶
Bases: TypedDict
steering entry of :class:SteeringRequestMeta.
Source code in src/aclientp/schema/field_meta.py
idleBehavior
instance-attribute
¶
Without a running turn, answer {"outcome": "promptRequired"} instead
of starting a new turn.
SteeringRequestMeta
¶
Bases: TypedDict
_meta on the _session/steering extension request.
The request steers the running turn with more input instead of queueing a
separate session/prompt. Supported when
:class:InitializeResponseMeta steering.supported is set.
Source code in src/aclientp/schema/field_meta.py
SteeringSupport
¶
Bases: TypedDict
steering entry of :class:InitializeResponseMeta.
Source code in src/aclientp/schema/field_meta.py
supported
instance-attribute
¶
The agent accepts the _session/steering extension request.
SubagentSessionInfoMeta
¶
Bases: TypedDict
Links a tool call to the subagent session it spawned.
Used by Zed to navigate into subagent threads.
Source code in src/aclientp/schema/field_meta.py
TerminalAuthValue
¶
Bases: TypedDict
Command a client runs in a terminal to authenticate.
Source code in src/aclientp/schema/field_meta.py
env
instance-attribute
¶
Environment variables for the command (default: none).
TerminalExitMeta
¶
Bases: TypedDict
Signals that the process of a display-only terminal has exited.
Sent on the final tool_call_update of a shell tool.
Source code in src/aclientp/schema/field_meta.py
TerminalInfoMeta
¶
Bases: TypedDict
Requests creation of a display-only terminal in the client.
Sent on the initial tool_call of a shell tool, only to clients that
declared terminal_output (see :data:ClientCapabilitiesMeta). Zed creates
a display-only terminal identified by terminal_id.
Source code in src/aclientp/schema/field_meta.py
TerminalOutputMeta
¶
Bases: TypedDict
Terminal output for a display-only terminal.
Under the terminal_output key each chunk replaces the output so far;
under terminal_output_delta (for clients that declared it) chunks are
appended. Zed only handles terminal_output.
Source code in src/aclientp/schema/field_meta.py
TokenCount
¶
Bases: TypedDict
Token counts of a turn or model (shape shared by claude-agent-acp and codex-acp).
Source code in src/aclientp/schema/field_meta.py
ToolCallMeta
¶
Bases: TypedDict
Zed conventions for _meta on tool calls.
Produced by Zed's native agent and read by Zed for any agent.
Source code in src/aclientp/schema/field_meta.py
subagent_session_info
instance-attribute
¶
subagent_session_info: SubagentSessionInfoMeta
Subagent session spawned by this tool call.
tool_name
instance-attribute
¶
Legacy tool name. Zed prefers the standard ACP name field and only
falls back to this key.
ToolUpdateMeta
¶
Bases: TypedDict
_meta of tool_call and tool_call_update session updates.
Defined as ToolUpdateMeta in claude-agent-acp's src/tool-calls/renderer.ts;
the terminal keys match codex-acp's.
Display-only terminal lifecycle (shell tools, clients declaring
terminal_output or terminal_output_delta):
tool_callwithterminal_info: client creates the terminal.tool_call_updatewithterminal_output/terminal_output_delta: client shows the output.tool_call_updatewithterminal_exit: client marks the process exited.
This exists because these agents run commands themselves, while ACP v1
expects the client to own terminals via terminal/create. ACP v2 removes
client terminals and adds agent-owned display terminals instead.
Source code in src/aclientp/schema/field_meta.py
is_mcp_tool_call
instance-attribute
¶
Set on MCP tool calls (claude-agent-acp).
terminal_exit
instance-attribute
¶
terminal_exit: TerminalExitMeta
Process exit (final tool_call_update).
terminal_info
instance-attribute
¶
terminal_info: TerminalInfoMeta
Create a display-only terminal (initial tool_call).
terminal_output
instance-attribute
¶
terminal_output: TerminalOutputMeta
Terminal output, replacing earlier output.
terminal_output_delta
instance-attribute
¶
terminal_output_delta: TerminalOutputMeta
Terminal output, appended to earlier output.