From d6284dfcc4995d9d0c88512b68b89f9e5ee1a88c Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Sat, 21 Nov 2026 23:20:44 +0100 Subject: [PATCH] docs(unstable-v2): clarify plain text and Markdown rendering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List the Markdown fields and the plain-text default in the v2 content guide. Distinguish text blocks from resource contents, patches, and terminal output. Keep each field’s purpose and audience in the Rust descriptions and protocol pages, alongside its text format. No field changes format or wire shape. --- agent-client-protocol-schema/src/v2/agent.rs | 55 +++---- agent-client-protocol-schema/src/v2/client.rs | 35 ++-- .../src/v2/content.rs | 16 +- .../src/v2/elicitation.rs | 56 +++---- agent-client-protocol-schema/src/v2/error.rs | 4 +- .../src/v2/tool_call.rs | 2 +- docs/protocol/v2/agent-plan.mdx | 9 +- docs/protocol/v2/authentication.mdx | 2 +- docs/protocol/v2/content.mdx | 33 ++-- docs/protocol/v2/draft/agent-plan.mdx | 10 +- docs/protocol/v2/draft/authentication.mdx | 2 +- docs/protocol/v2/draft/content.mdx | 33 ++-- docs/protocol/v2/draft/elicitation.mdx | 6 +- docs/protocol/v2/draft/error.mdx | 2 +- docs/protocol/v2/draft/initialization.mdx | 11 +- docs/protocol/v2/draft/prompt-lifecycle.mdx | 2 +- docs/protocol/v2/draft/schema.mdx | 150 +++++++++--------- .../v2/draft/session-config-options.mdx | 8 +- docs/protocol/v2/draft/session-list.mdx | 4 +- docs/protocol/v2/draft/slash-commands.mdx | 18 ++- docs/protocol/v2/draft/subagents.mdx | 4 +- docs/protocol/v2/draft/tool-calls.mdx | 13 +- docs/protocol/v2/elicitation.mdx | 6 +- docs/protocol/v2/error.mdx | 2 +- docs/protocol/v2/initialization.mdx | 11 +- docs/protocol/v2/migration.mdx | 2 +- docs/protocol/v2/prompt-lifecycle.mdx | 2 +- docs/protocol/v2/schema.mdx | 136 ++++++++-------- docs/protocol/v2/session-config-options.mdx | 8 +- docs/protocol/v2/session-list.mdx | 4 +- docs/protocol/v2/slash-commands.mdx | 8 +- docs/protocol/v2/subagents.mdx | 4 +- docs/protocol/v2/tool-calls.mdx | 13 +- schema/v2/schema.json | 78 ++++----- schema/v2/schema.unstable.json | 88 +++++----- 35 files changed, 446 insertions(+), 391 deletions(-) diff --git a/agent-client-protocol-schema/src/v2/agent.rs b/agent-client-protocol-schema/src/v2/agent.rs index 01da1fb19..6cdd61751 100644 --- a/agent-client-protocol-schema/src/v2/agent.rs +++ b/agent-client-protocol-schema/src/v2/agent.rs @@ -198,15 +198,14 @@ impl InitializeResponse { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct Implementation { - /// Intended for programmatic or logical use, but can be used as a display - /// name fallback if title isn't present. + /// Name intended for programmatic or logical use. It can also serve as the + /// plain-text display name when `title` is absent. pub name: String, - /// Intended for UI and end-user contexts and optimized to be human-readable - /// and easily understood. + /// Optional human-readable title chosen to make the implementation easy to + /// recognize in the user interface. The title is plain text. /// - /// If not provided, the name SHOULD be used for display. - /// - /// Omitted and `null` are equivalent and mean the `name` is used for display. + /// Omission and `null` are equivalent. When displaying an implementation without a title, + /// the receiver SHOULD use `name`. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default)] @@ -238,10 +237,10 @@ impl Implementation { } } - /// Intended for UI and end-user contexts and optimized to be human-readable - /// and easily understood. + /// Optional human-readable title chosen to make the implementation easy to + /// recognize in the user interface. The title is plain text. /// - /// If not provided, the name SHOULD be used for display. + /// When displaying an implementation without a title, the receiver SHOULD use `name`. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); @@ -699,11 +698,11 @@ pub enum AuthState { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct AuthAccount { - /// Human-readable name for the account, suitable for display on its own, + /// Human-readable name for the account, suitable for display on its own as plain text, /// for example `Claude Max`, `OpenAI API key`, or `Vertex AI`. pub label: String, - /// Short text shown with the label, such as the credential source, for example - /// `API key helper`. MUST NOT contain credentials. + /// Short plain-text description shown with the label, such as the credential source + /// `API key helper`. Agents MUST NOT put credentials in this field. /// /// Optional. Omitted and `null` are equivalent and mean no description is reported. #[serde_as(deserialize_as = "DefaultOnError")] @@ -768,7 +767,7 @@ impl AuthAccount { } } - /// Short text shown with the label, such as the credential source. + /// Short plain-text description shown with the label, such as the credential source. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -984,7 +983,7 @@ impl AuthMethod { } } - /// The human-readable name of this authentication method. + /// Human-readable name of the authentication method, shown to users as plain text. #[must_use] pub fn name(&self) -> &str { match self { @@ -1042,7 +1041,7 @@ pub struct OtherAuthMethod { pub type_: String, /// Unique identifier for this authentication method. pub method_id: AuthMethodId, - /// Human-readable name of the authentication method. + /// Human-readable name of the authentication method, shown to users as plain text. pub name: String, /// The remaining fields of the unknown authentication method payload, preserved verbatim, /// including `description` and `_meta`. @@ -1125,7 +1124,7 @@ fn other_auth_method_schema(schema: &mut Schema) { pub struct AuthMethodAgent { /// Unique identifier for this authentication method. pub method_id: AuthMethodId, - /// Human-readable name of the authentication method. + /// Human-readable name of the authentication method, shown to users as plain text. pub name: String, /// Optional human-readable description of this authentication method. /// May contain Markdown. @@ -1195,7 +1194,7 @@ impl AuthMethodAgent { pub struct AuthMethodTerminal { /// Unique identifier for this authentication method. pub method_id: AuthMethodId, - /// Human-readable name of the authentication method. + /// Human-readable name of the authentication method, shown to users as plain text. pub name: String, /// Optional human-readable description of this authentication method. /// May contain Markdown. @@ -3505,7 +3504,7 @@ pub struct SessionInfo { #[serde(default, skip_serializing_if = "Vec::is_empty")] pub additional_directories: Vec, - /// Human-readable title for the session + /// Human-readable title for the session, in plain text. /// /// Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -3571,7 +3570,7 @@ impl SessionInfo { self } - /// Human-readable title for the session + /// Human-readable title for the session, in plain text. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); @@ -3635,7 +3634,7 @@ impl SessionInfo { pub struct SetSessionTitleRequest { /// The ID of the session to retitle. pub session_id: SessionId, - /// The new title for the session. + /// The new plain-text title for the session. /// /// Required and non-null. Omission and explicit `null` are both invalid. The Agent MAY /// normalize the title before storing it, for example by trimming whitespace or @@ -3693,7 +3692,7 @@ impl SetSessionTitleRequest { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct SetSessionTitleResponse { - /// The title the Agent stored. + /// The plain-text title the Agent stored. /// /// This differs from the requested title if the Agent normalized it. Clients SHOULD /// display this value rather than the one they sent. @@ -3793,7 +3792,7 @@ impl SessionConfigGroupId { pub struct SessionConfigSelectOption { /// Unique identifier for this option value. pub value: SessionConfigValueId, - /// Human-readable label for this option value. + /// Human-readable label the Client can display for this option value, in plain text. pub name: String, /// Optional description for this option value. /// May contain Markdown. @@ -3827,7 +3826,8 @@ impl SessionConfigSelectOption { } } - /// Sets or clears the optional `description` field. + /// Sets or clears the description of what this option value does. + /// May contain Markdown. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -3856,7 +3856,7 @@ impl SessionConfigSelectOption { pub struct SessionConfigSelectGroup { /// Identifier for this group. MUST be unique within the option. pub group_id: SessionConfigGroupId, - /// Human-readable label for this group. + /// Human-readable label the Client can display as a plain-text group header. pub name: String, /// The set of option values in this group. MUST contain at least one value. #[serde_as(deserialize_as = "DefaultOnError>")] @@ -4113,7 +4113,7 @@ fn other_session_config_kind_schema(schema: &mut Schema) { pub struct SessionConfigOption { /// Identifier for the configuration option. MUST be unique within `configOptions`. pub config_id: SessionConfigId, - /// Human-readable label for the option. + /// Human-readable label the Client can display for the option, in plain text. pub name: String, /// Optional description for the Client to display to the user. /// May contain Markdown. @@ -4192,7 +4192,8 @@ impl SessionConfigOption { ) } - /// Sets or clears the optional `description` field. + /// Sets or clears the description of what this option controls. + /// May contain Markdown. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); diff --git a/agent-client-protocol-schema/src/v2/client.rs b/agent-client-protocol-schema/src/v2/client.rs index b93da686f..6beffa306 100644 --- a/agent-client-protocol-schema/src/v2/client.rs +++ b/agent-client-protocol-schema/src/v2/client.rs @@ -743,7 +743,7 @@ impl Notice { } } - /// Sets or clears the optional description. + /// Sets or clears the additional plain-text detail or guidance shown with the notice. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -827,7 +827,7 @@ pub struct CompactionUpdate { #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true, "x-deserialize-skip-invalid-items" = true)))] #[serde(default, skip_serializing_if = "MaybeUndefined::is_undefined")] pub summary: MaybeUndefined>, - /// Human-readable error details for the compaction. + /// Human-readable details of a compaction error, in plain text. #[serde_as(deserialize_as = "DefaultOnError>")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default, skip_serializing_if = "MaybeUndefined::is_undefined")] @@ -877,7 +877,7 @@ impl CompactionUpdate { self } - /// Sets, clears, or omits the error details patch. + /// Sets, clears, or omits the plain-text error details patch. #[must_use] pub fn error(mut self, error: impl IntoMaybeUndefined) -> Self { self.error = error.into_maybe_undefined(); @@ -1586,7 +1586,7 @@ impl ReplayComplete { pub struct SubagentUpdate { /// The opaque session ID identifying the child in all ACP messages. pub session_id: SessionId, - /// The parent's human-readable display title for this child. It need not be unique. + /// The parent's human-readable display title for this child, in plain text. It need not be unique. /// /// Optional and nullable. Omitted means unchanged. `null` clears it. If no /// title is set, the Client chooses a fallback presentation. @@ -1669,14 +1669,15 @@ impl SubagentUpdate { } } - /// Sets, clears, or leaves unchanged the parent's display title for the child. + /// Sets, clears, or leaves unchanged the parent's display title for the child, in plain text. #[must_use] pub fn title(mut self, title: impl IntoMaybeUndefined) -> Self { self.title = title.into_maybe_undefined(); self } - /// Sets, clears, or leaves unchanged the parent's description of the child. + /// Sets, clears, or leaves unchanged the parent's description of the child's role or purpose. + /// May contain Markdown. #[must_use] pub fn description(mut self, description: impl IntoMaybeUndefined) -> Self { self.description = description.into_maybe_undefined(); @@ -2038,7 +2039,7 @@ impl ConfigOptionUpdate { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct SessionInfoUpdate { - /// Human-readable title for the session. Set to null to clear. + /// Human-readable title for the session, in plain text. Set to `null` to clear. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default, skip_serializing_if = "MaybeUndefined::is_undefined")] @@ -2073,7 +2074,7 @@ impl SessionInfoUpdate { Self::default() } - /// Human-readable title for the session. Set to null to clear. + /// Human-readable title for the session, in plain text. Set to `null` to clear. #[must_use] pub fn title(mut self, title: impl IntoMaybeUndefined) -> Self { self.title = title.into_maybe_undefined(); @@ -3443,7 +3444,7 @@ pub enum AvailableCommand { } impl AvailableCommand { - /// Command name (e.g., `create_plan`, `research_codebase`). + /// Plain-text command name, such as `create_plan` or `research_codebase`. #[must_use] pub fn name(&self) -> &str { match self { @@ -3499,7 +3500,7 @@ pub struct OtherAvailableCommand { /// future ACP variants. #[serde(rename = "type")] pub type_: String, - /// Command name. MUST NOT contain whitespace and MUST be unique within the command list. + /// Plain-text command name. MUST NOT contain whitespace and MUST be unique within the command list. pub name: String, /// Human-readable description of what the command does. /// May contain Markdown. @@ -3592,7 +3593,7 @@ fn other_available_command_schema(schema: &mut Schema) { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct Command { - /// Command name without the leading `/` (e.g., `create_plan`, `research_codebase`). + /// Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`. /// /// MUST NOT contain whitespace and MUST be unique within the command list. pub name: String, @@ -3672,7 +3673,7 @@ impl Command { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct Skill { - /// Skill name. The Client uses it to refer to the skill in a `skill` content block. + /// Plain-text skill name. The Client uses it to refer to the skill in a `skill` content block. /// /// MUST NOT contain whitespace and MUST be unique within the command list, /// across commands and skills. It need not match the `name` in the skill's @@ -3836,7 +3837,8 @@ fn other_available_command_input_schema(schema: &mut Schema) { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct TextCommandInput { - /// A hint to display when the input hasn't been provided yet + /// Plain-text hint about the input the command expects. The Client can display it + /// when the user hasn't provided input yet. pub hint: String, /// The _meta property is reserved by ACP to allow Clients and Agents to attach additional /// metadata to their interactions. Omitted and `null` are equivalent and mean no metadata. @@ -3891,7 +3893,7 @@ impl TextCommandInput { pub struct RequestPermissionRequest { /// The session ID for this request. pub session_id: SessionId, - /// Human-readable title for the permission prompt. + /// Human-readable title shown with the permission prompt, in plain text. /// /// This title is specific to the permission prompt and does not update any /// subject's displayed title. @@ -3964,7 +3966,8 @@ impl RequestPermissionRequest { } } - /// Sets or clears the optional `description` field. + /// Sets or clears the explanation of why permission is needed. + /// May contain Markdown. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -4227,7 +4230,7 @@ fn other_request_permission_subject_schema(schema: &mut Schema) { pub struct PermissionOption { /// Identifier for this permission option. MUST be unique within the request. pub option_id: PermissionOptionId, - /// Human-readable label to display to the user. + /// Human-readable label for this choice, shown to the user as plain text. pub name: String, /// What selecting this option means. Clients can also use it to choose how to display the option. pub kind: PermissionOptionKind, diff --git a/agent-client-protocol-schema/src/v2/content.rs b/agent-client-protocol-schema/src/v2/content.rs index d4152a2e4..a0154b15b 100644 --- a/agent-client-protocol-schema/src/v2/content.rs +++ b/agent-client-protocol-schema/src/v2/content.rs @@ -84,6 +84,7 @@ pub enum ContentBlock { /// Text content. May be plain text or formatted with Markdown. /// /// All Agents MUST support text content blocks in prompts. + /// Clients SHOULD join adjacent text blocks without a separator before rendering. /// Clients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown /// extensions. Text(TextContent), @@ -215,7 +216,7 @@ fn other_content_block_schema(schema: &mut Schema) { #[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)] #[non_exhaustive] pub struct TextContent { - /// Text payload carried by this content block. + /// Text payload carried by this content block. It may be plain text or Markdown. pub text: String, /// Optional annotations that help Clients decide how to display or route this content. /// @@ -492,7 +493,7 @@ pub enum EmbeddedResourceResource { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct TextResourceContents { - /// Text payload carried by this content block. + /// The contents of the resource. Its `mimeType`, when provided, describes the format. pub text: String, /// URI associated with this resource or media payload. #[cfg_attr(feature = "schemars", schemars(url))] @@ -619,19 +620,20 @@ impl BlobResourceContents { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct ResourceLink { - /// Human-readable name shown for this protocol object. + /// Human-readable name shown for the linked resource, in plain text. pub name: String, /// URI associated with this resource or media payload. #[cfg_attr(feature = "schemars", schemars(url))] pub uri: String, - /// Optional display title for end-user UI. + /// Optional plain-text display title for the resource, intended for end users. /// /// Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default)] pub title: Option, - /// Optional human-readable details shown with this protocol object. + /// Optional human-readable description shown with the link. It describes the resource + /// contents in plain text. /// /// Omitted and `null` are equivalent and mean no description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -702,7 +704,7 @@ impl ResourceLink { self } - /// Sets or clears the optional `description` field. + /// Sets or clears the plain-text description shown with the resource link. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -730,7 +732,7 @@ impl ResourceLink { self } - /// Sets or clears the optional `title` field. + /// Sets or clears the plain-text display title for the resource. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); diff --git a/agent-client-protocol-schema/src/v2/elicitation.rs b/agent-client-protocol-schema/src/v2/elicitation.rs index 6076a5db3..bf9c882f1 100644 --- a/agent-client-protocol-schema/src/v2/elicitation.rs +++ b/agent-client-protocol-schema/src/v2/elicitation.rs @@ -76,9 +76,9 @@ pub struct EnumOption { /// The constant value for this option. #[serde(rename = "const")] pub value: String, - /// Human-readable title for this option. + /// Human-readable title for this choice, in plain text. `const` holds the corresponding value. pub title: String, - /// Human-readable description. + /// Plain-text description to help the user choose between options. /// /// Optional. Omitted and `null` are equivalent and mean no description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -109,7 +109,7 @@ impl EnumOption { } } - /// Human-readable description. + /// Plain-text description to help the user choose between options. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -141,14 +141,14 @@ impl EnumOption { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct StringPropertySchema { - /// Optional title for the property. + /// Optional plain-text label for this field in the form. /// /// Optional. Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default)] pub title: Option, - /// Human-readable description. + /// Plain-text help for the user filling out this field. /// /// Optional. Omitted and `null` are equivalent and mean no description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -248,14 +248,14 @@ impl StringPropertySchema { } } - /// Optional title for the property. + /// Optional plain-text label for this field in the form. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); self } - /// Human-readable description. + /// Plain-text help for the user filling out this field. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -326,14 +326,14 @@ impl StringPropertySchema { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct NumberPropertySchema { - /// Optional title for the property. + /// Optional plain-text label for this field in the form. /// /// Optional. Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default)] pub title: Option, - /// Human-readable description. + /// Plain-text help for the user filling out this field. /// /// Optional. Omitted and `null` are equivalent and mean no description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -376,14 +376,14 @@ impl NumberPropertySchema { Self::default() } - /// Optional title for the property. + /// Optional plain-text label for this field in the form. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); self } - /// Human-readable description. + /// Plain-text help for the user filling out this field. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -433,14 +433,14 @@ impl NumberPropertySchema { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct IntegerPropertySchema { - /// Optional title for the property. + /// Optional plain-text label for this field in the form. /// /// Optional. Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default)] pub title: Option, - /// Human-readable description. + /// Plain-text help for the user filling out this field. /// /// Optional. Omitted and `null` are equivalent and mean no description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -483,14 +483,14 @@ impl IntegerPropertySchema { Self::default() } - /// Optional title for the property. + /// Optional plain-text label for this field in the form. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); self } - /// Human-readable description. + /// Plain-text help for the user filling out this field. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -540,14 +540,14 @@ impl IntegerPropertySchema { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct BooleanPropertySchema { - /// Optional title for the property. + /// Optional plain-text label for this field in the form. /// /// Optional. Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default)] pub title: Option, - /// Human-readable description. + /// Plain-text help for the user filling out this field. /// /// Optional. Omitted and `null` are equivalent and mean no description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -580,14 +580,14 @@ impl BooleanPropertySchema { Self::default() } - /// Optional title for the property. + /// Optional plain-text label for this field in the form. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); self } - /// Human-readable description. + /// Plain-text help for the user filling out this field. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -822,14 +822,14 @@ impl<'de> Deserialize<'de> for MultiSelectItems { #[serde(rename_all = "camelCase")] #[non_exhaustive] pub struct MultiSelectPropertySchema { - /// Optional title for the property. + /// Optional plain-text label for this field in the form. /// /// Optional. Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] #[cfg_attr(feature = "schemars", schemars(extend("x-deserialize-default-on-error" = true)))] #[serde(default)] pub title: Option, - /// Human-readable description. + /// Plain-text help for the user filling out this field. /// /// Optional. Omitted and `null` are equivalent and mean no description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -899,14 +899,14 @@ impl MultiSelectPropertySchema { } } - /// Optional title for the property. + /// Optional plain-text label for this field in the form. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); self } - /// Human-readable description. + /// Plain-text help for the user filling out this field. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -1104,7 +1104,7 @@ pub struct ElicitationSchema { /// Type discriminator. Always `"object"`. Any other value is rejected. #[serde(rename = "type")] pub type_: ElicitationSchemaType, - /// Optional title for the schema. + /// Optional plain-text title for the form as a whole. /// /// Optional. Omitted and `null` are equivalent and mean no title is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -1118,7 +1118,7 @@ pub struct ElicitationSchema { /// Optional. Omitted and `null` are equivalent and mean no property names are required. #[serde(default)] pub required: Option>, - /// Optional description of what this schema represents. + /// Optional plain-text description of what the form asks the user to provide. /// /// Optional. Omitted and `null` are equivalent and mean no schema description is provided. #[serde_as(deserialize_as = "DefaultOnError")] @@ -1157,14 +1157,14 @@ impl ElicitationSchema { Self::default() } - /// Optional title for the schema. + /// Optional plain-text title for the form as a whole. #[must_use] pub fn title(mut self, title: impl IntoOption) -> Self { self.title = title.into_option(); self } - /// Optional description of what this schema represents. + /// Optional plain-text description of what the form asks the user to provide. #[must_use] pub fn description(mut self, description: impl IntoOption) -> Self { self.description = description.into_option(); @@ -1612,7 +1612,7 @@ pub struct CreateElicitationRequest { /// The elicitation mode and its mode-specific fields. #[serde(flatten)] pub mode: ElicitationMode, - /// A human-readable message describing what input is needed. + /// A plain-text message explaining to the user what the Agent needs and why. pub message: String, /// The _meta property is reserved by ACP to allow Clients and Agents to attach additional /// metadata to their interactions. Omitted and `null` are equivalent and mean no metadata. diff --git a/agent-client-protocol-schema/src/v2/error.rs b/agent-client-protocol-schema/src/v2/error.rs index 40498f8af..ee44cd3b2 100644 --- a/agent-client-protocol-schema/src/v2/error.rs +++ b/agent-client-protocol-schema/src/v2/error.rs @@ -38,8 +38,8 @@ pub struct Error { /// A number indicating the error type that occurred. /// This MUST be an integer as defined in the JSON-RPC specification. pub code: ErrorCode, - /// A string providing a short description of the error. - /// The message SHOULD be limited to a concise single sentence. + /// A short, human-readable description of the error, in plain text. + /// The sender SHOULD limit the message to a single concise sentence. pub message: String, /// Optional primitive or structured value that contains additional information about the error. /// This may include debugging information or context-specific details. diff --git a/agent-client-protocol-schema/src/v2/tool_call.rs b/agent-client-protocol-schema/src/v2/tool_call.rs index 46f58ddca..7b8ce1654 100644 --- a/agent-client-protocol-schema/src/v2/tool_call.rs +++ b/agent-client-protocol-schema/src/v2/tool_call.rs @@ -149,7 +149,7 @@ impl ToolCallUpdate { self } - /// Human-readable title describing what the tool is doing. + /// Human-readable plain-text title describing what the tool is doing. #[must_use] pub fn title(mut self, title: impl IntoMaybeUndefined) -> Self { self.title = title.into_maybe_undefined(); diff --git a/docs/protocol/v2/agent-plan.mdx b/docs/protocol/v2/agent-plan.mdx index ebddbb259..aedae91f3 100644 --- a/docs/protocol/v2/agent-plan.mdx +++ b/docs/protocol/v2/agent-plan.mdx @@ -86,7 +86,8 @@ When the language model creates an execution plan, the Agent **SHOULD** report i ``` - The complete plan as Markdown, not just the text that changed. + The complete plan as [Markdown](/protocol/v2/content#plain-text-and-markdown), + not just the text that changed. @@ -129,9 +130,9 @@ Every plan content variant, including custom or future variants, **MUST** carry Each plan entry represents a specific task or goal within the overall execution strategy: - A human-readable description of what this task aims to accomplish. It may be - plain text or Markdown, like a [text content - block](/protocol/v2/content#text-content). + A human-readable description of what this task aims to accomplish. It can be + plain text or [Markdown](/protocol/v2/content#plain-text-and-markdown), like a + text content block. diff --git a/docs/protocol/v2/authentication.mdx b/docs/protocol/v2/authentication.mdx index bf8760b25..22c095ef2 100644 --- a/docs/protocol/v2/authentication.mdx +++ b/docs/protocol/v2/authentication.mdx @@ -97,7 +97,7 @@ authentication through `auth/login`. Every authentication method **MUST** includ } ``` -The optional `description` may contain Markdown. +The `name` is the method's human-readable label, in plain text. Its optional `description` may contain Markdown. The `terminal` type tells the Client to run the configured Agent program interactively: diff --git a/docs/protocol/v2/content.mdx b/docs/protocol/v2/content.mdx index ca18f85ca..ad2ee9f72 100644 --- a/docs/protocol/v2/content.mdx +++ b/docs/protocol/v2/content.mdx @@ -11,6 +11,20 @@ Content blocks appear in: - Language model output reported through [`session/update`](/protocol/v2/prompt-lifecycle#3-agent-reports-output) notifications as message updates or streamed chunks - Progress updates and results from [tool calls](/protocol/v2/tool-calls), including streamed tool-call content chunks +## Plain text and Markdown + +Display strings are plain text unless the field specifies Markdown. Clients **SHOULD NOT** render plain-text fields as Markdown. These include tool call and session titles, command and config option names, labels, input hints, and error messages. For example, the underscores in a tool call title of `Read /work/_draft_.md` are part of the filename, not emphasis. + +When displaying the following fields, Clients **SHOULD** render them as [CommonMark](https://spec.commonmark.org/) and **MAY** support [GitHub Flavored Markdown](https://github.github.com/gfm/) extensions such as tables: + +- `text` in a [text content block](#text-content), wherever the block appears. +- `content` in a [plan entry](/protocol/v2/agent-plan#plan-entries) or a [Markdown plan](/protocol/v2/agent-plan#markdown-plans). +- `description` on an [authentication method](/protocol/v2/authentication#authentication-method-types), a [command](/protocol/v2/slash-commands), a [config option or one of its select values](/protocol/v2/session-config-options), a [permission request](/protocol/v2/tool-calls#requesting-permission), or a [subagent](/protocol/v2/subagents). + +The `description` of a [notice](/protocol/v2/prompt-lifecycle#session-notices), a [resource link](#resource-link), or an [elicitation form, property, or option](/protocol/v2/elicitation#form-mode) is plain text. See [Rendering Agent content](/protocol/v2/security#rendering-agent-content) for handling raw HTML and links when displaying Markdown. + +Payloads have their own formats. An embedded resource's `text` is the resource itself, a diff's `patch.text` is in the format named by `patch.format`, and terminal output carries bytes. None of these is a text content block. + ## Content types Content from the Agent is untrusted. See [Rendering Agent Content](/protocol/v2/security#rendering-agent-content) and [URIs and Remote Resources](/protocol/v2/security#uris-and-remote-resources). @@ -27,11 +41,7 @@ When displaying Agent output, Clients **SHOULD** show text content. For image, a ### Text content -Text may be plain text or Markdown. Clients **SHOULD** render it as [CommonMark](https://spec.commonmark.org/), and **MAY** support [GitHub Flavored Markdown](https://github.github.com/gfm/) extensions such as tables. Adjacent text blocks form one continuous text, and Clients **SHOULD** join them without a separator before rendering. This applies wherever a text block appears, including user messages, thoughts, and tool-call content. See [Rendering Agent Content](/protocol/v2/security#rendering-agent-content) for raw HTML. - -Other strings shown to users, such as a tool call `title`, a session `title`, and the `name` of a command or config option, are plain text unless the field's description says otherwise. Clients **SHOULD NOT** render them as Markdown. - -These `description` fields may contain Markdown, like a text block: the description of an [authentication method](/protocol/v2/authentication#authentication-method-types), a [command](/protocol/v2/slash-commands), a [config option](/protocol/v2/session-config-options) and each of its values, a [permission request](/protocol/v2/tool-calls#requesting-permission), and a [subagent](/protocol/v2/subagents). A [plan entry](/protocol/v2/agent-plan#plan-entries)'s `content` may too. +Adjacent text blocks form one continuous text. Clients **SHOULD** join them without a separator before rendering. This applies wherever text blocks appear, including in user and Agent messages, thoughts, tool-call content, and compaction summaries. ```json { @@ -43,7 +53,8 @@ These `description` fields may contain Markdown, like a text block: the descript All Agents **MUST** support text content blocks when included in prompts. - The text content to display + The text to display. It can be plain text or + [Markdown](#plain-text-and-markdown). @@ -145,7 +156,8 @@ included in prompts. - The text content of the resource + The contents of the resource. Its `mimeType`, when provided, describes the + format, for example `text/plain` or `text/markdown`. @@ -203,7 +215,7 @@ All Agents **MUST** support resource links when included in prompts. - A human-readable name for the resource + A human-readable name for the linked resource, in plain text @@ -211,11 +223,12 @@ All Agents **MUST** support resource links when included in prompts. - Optional display title for the resource + Optional plain-text title for displaying the resource to users - Optional description of the resource contents + Optional human-readable description shown with the link. It describes the + resource contents in plain text. diff --git a/docs/protocol/v2/draft/agent-plan.mdx b/docs/protocol/v2/draft/agent-plan.mdx index 7ddaf8871..d9509aed7 100644 --- a/docs/protocol/v2/draft/agent-plan.mdx +++ b/docs/protocol/v2/draft/agent-plan.mdx @@ -86,7 +86,9 @@ When the language model creates an execution plan, the Agent **SHOULD** report i ``` - The complete plan as Markdown, not just the text that changed. + The complete plan as + [Markdown](/protocol/v2/draft/content#plain-text-and-markdown), not just the + text that changed. @@ -129,9 +131,9 @@ Every plan content variant, including custom or future variants, **MUST** carry Each plan entry represents a specific task or goal within the overall execution strategy: - A human-readable description of what this task aims to accomplish. It may be - plain text or Markdown, like a [text content - block](/protocol/v2/draft/content#text-content). + A human-readable description of what this task aims to accomplish. It can be + plain text or [Markdown](/protocol/v2/draft/content#plain-text-and-markdown), + like a text content block. diff --git a/docs/protocol/v2/draft/authentication.mdx b/docs/protocol/v2/draft/authentication.mdx index 4fec73f0c..340ddc2a6 100644 --- a/docs/protocol/v2/draft/authentication.mdx +++ b/docs/protocol/v2/draft/authentication.mdx @@ -97,7 +97,7 @@ authentication through `auth/login`. Every authentication method **MUST** includ } ``` -The optional `description` may contain Markdown. +The `name` is the method's human-readable label, in plain text. Its optional `description` may contain Markdown. In contrast, the `label` and `description` of an [account](/protocol/v2/draft/schema#authaccount) reported by `auth/status` are plain text. The `terminal` type tells the Client to run the configured Agent program interactively: diff --git a/docs/protocol/v2/draft/content.mdx b/docs/protocol/v2/draft/content.mdx index 86bf72aeb..1146c4c2e 100644 --- a/docs/protocol/v2/draft/content.mdx +++ b/docs/protocol/v2/draft/content.mdx @@ -11,6 +11,20 @@ Content blocks appear in: - Language model output reported through [`session/update`](/protocol/v2/draft/prompt-lifecycle#3-agent-reports-output) notifications as message updates or streamed chunks - Progress updates and results from [tool calls](/protocol/v2/draft/tool-calls), including streamed tool-call content chunks +## Plain text and Markdown + +Display strings are plain text unless the field specifies Markdown. Clients **SHOULD NOT** render plain-text fields as Markdown. These include tool call and session titles, command and config option names, labels, input hints, and error messages. For example, the underscores in a tool call title of `Read /work/_draft_.md` are part of the filename, not emphasis. + +When displaying the following fields, Clients **SHOULD** render them as [CommonMark](https://spec.commonmark.org/) and **MAY** support [GitHub Flavored Markdown](https://github.github.com/gfm/) extensions such as tables: + +- `text` in a [text content block](#text-content), wherever the block appears. +- `content` in a [plan entry](/protocol/v2/draft/agent-plan#plan-entries) or a [Markdown plan](/protocol/v2/draft/agent-plan#markdown-plans). +- `description` on an [authentication method](/protocol/v2/draft/authentication#authentication-method-types), a [command or skill](/protocol/v2/draft/slash-commands), a [config option or one of its select values](/protocol/v2/draft/session-config-options), a [permission request](/protocol/v2/draft/tool-calls#requesting-permission), or a [subagent](/protocol/v2/draft/subagents). + +The `description` of a [notice](/protocol/v2/draft/prompt-lifecycle#session-notices), a [resource link](#resource-link), an [elicitation form, property, or option](/protocol/v2/draft/elicitation#form-mode), or an [auth account](/protocol/v2/draft/schema#authaccount) is plain text. See [Rendering Agent content](/protocol/v2/draft/security#rendering-agent-content) for handling raw HTML and links when displaying Markdown. + +Payloads have their own formats. An embedded resource's `text` is the resource itself, a diff's `patch.text` is in the format named by `patch.format`, and terminal output carries bytes. None of these is a text content block. + ## Content types Content from the Agent is untrusted. See [Rendering Agent Content](/protocol/v2/draft/security#rendering-agent-content) and [URIs and Remote Resources](/protocol/v2/draft/security#uris-and-remote-resources). @@ -29,11 +43,7 @@ When displaying Agent output, Clients **SHOULD** show text content. For image, a ### Text content -Text may be plain text or Markdown. Clients **SHOULD** render it as [CommonMark](https://spec.commonmark.org/), and **MAY** support [GitHub Flavored Markdown](https://github.github.com/gfm/) extensions such as tables. Adjacent text blocks form one continuous text, and Clients **SHOULD** join them without a separator before rendering. This applies wherever a text block appears, including user messages, thoughts, and tool-call content. See [Rendering Agent Content](/protocol/v2/draft/security#rendering-agent-content) for raw HTML. - -Other strings shown to users, such as a tool call `title`, a session `title`, and the `name` of a command or config option, are plain text unless the field's description says otherwise. Clients **SHOULD NOT** render them as Markdown. - -These `description` fields may contain Markdown, like a text block: the description of an [authentication method](/protocol/v2/draft/authentication#authentication-method-types), a [command or skill](/protocol/v2/draft/slash-commands), a [config option](/protocol/v2/draft/session-config-options) and each of its values, a [permission request](/protocol/v2/draft/tool-calls#requesting-permission), and a [subagent](/protocol/v2/draft/subagents). A [plan entry](/protocol/v2/draft/agent-plan#plan-entries)'s `content` may too. +Adjacent text blocks form one continuous text. Clients **SHOULD** join them without a separator before rendering. This applies wherever text blocks appear, including in user and Agent messages, thoughts, tool-call content, and compaction summaries. ```json { @@ -45,7 +55,8 @@ These `description` fields may contain Markdown, like a text block: the descript All Agents **MUST** support text content blocks when included in prompts. - The text content to display + The text to display. It can be plain text or + [Markdown](#plain-text-and-markdown). @@ -147,7 +158,8 @@ included in prompts. - The text content of the resource + The contents of the resource. Its `mimeType`, when provided, describes the + format, for example `text/plain` or `text/markdown`. @@ -205,7 +217,7 @@ All Agents **MUST** support resource links when included in prompts. - A human-readable name for the resource + A human-readable name for the linked resource, in plain text @@ -213,11 +225,12 @@ All Agents **MUST** support resource links when included in prompts. - Optional display title for the resource + Optional plain-text title for displaying the resource to users - Optional description of the resource contents + Optional human-readable description shown with the link. It describes the + resource contents in plain text. diff --git a/docs/protocol/v2/draft/elicitation.mdx b/docs/protocol/v2/draft/elicitation.mdx index 7bc65dbd4..f8e23d138 100644 --- a/docs/protocol/v2/draft/elicitation.mdx +++ b/docs/protocol/v2/draft/elicitation.mdx @@ -71,7 +71,7 @@ Every request has these fields. Each mode adds its own. - Text shown to the user that explains what is requested and why. + A plain-text message explaining to the user what the Agent needs and why. Scope is represented with flattened fields. Exactly one of `sessionId` or @@ -161,7 +161,9 @@ optional `required`, `title`, and `description`. Each property is one of: | Boolean | `type: "boolean"` | `default` | | Multi select | `type: "array"` with `items` of `{ "type": "string", "enum": [...] }` or `{ "anyOf": [...] }` (`const` and `title` options) | `minItems`, `maxItems`, `default` | -Every property may also have `title` and `description`. Each `oneOf` or `anyOf` option has a `const` value and a `title`, and may also have a `description`. Each `enum`, `oneOf`, and `anyOf` list needs at least one option. Clients treat an unknown +Every property may also have `title` and `description`. Each `oneOf` or `anyOf` option has a `const` value and a `title`, and may also have a `description`. The `title` labels the form, field, or choice for the user. The `description` provides additional guidance. Both are plain text. + +Each `enum`, `oneOf`, and `anyOf` list needs at least one option. Clients treat an unknown `format` as plain text. Accepted `content` maps each answered property name to its value: a string for text and single-select properties, a number for `number` and `integer`, a boolean for `boolean`, and an array of strings for multi-select. Unanswered properties are omitted, not set to `null`. Custom or future property types may use other JSON values. In multi-select `items`, the titled `anyOf` form omits `type`. When `type` is `"string"`, `enum` is required even if `anyOf` is also present. diff --git a/docs/protocol/v2/draft/error.mdx b/docs/protocol/v2/draft/error.mdx index 8b42af6ce..1e6a66f7d 100644 --- a/docs/protocol/v2/draft/error.mdx +++ b/docs/protocol/v2/draft/error.mdx @@ -6,7 +6,7 @@ description: "Error handling in the Agent Client Protocol" Failed requests return a [JSON-RPC 2.0 error object](https://www.jsonrpc.org/specification#error_object): - `code`: an integer identifying the kind of error -- `message`: a short human-readable description +- `message`: a short, human-readable description of the error, in plain text - `data` (optional): additional information whose shape depends on the code ```json diff --git a/docs/protocol/v2/draft/initialization.mdx b/docs/protocol/v2/draft/initialization.mdx index 802049522..e28b58c2d 100644 --- a/docs/protocol/v2/draft/initialization.mdx +++ b/docs/protocol/v2/draft/initialization.mdx @@ -456,14 +456,15 @@ Optionally, they **MAY** support more types of [content](/protocol/v2/draft/cont Both Clients and Agents **MUST** provide information about their implementation in the `info` field. It takes the following three fields: - Intended for programmatic or logical use, but can be used as a display name - fallback if title isn't present. + Name intended for programmatic or logical use. It can also serve as the + plain-text display name when `title` is absent. - Intended for UI and end-user contexts and optimized to be human-readable and - easily understood. Optional. Omitted and `null` are equivalent. If not - provided, the name **SHOULD** be used for display. + Optional human-readable title chosen to make the implementation easy to + recognize in the user interface. The title is plain text. Omission and `null` + are equivalent. When displaying an implementation without a title, the + receiver **SHOULD** use `name`. diff --git a/docs/protocol/v2/draft/prompt-lifecycle.mdx b/docs/protocol/v2/draft/prompt-lifecycle.mdx index b531f5e4a..8b0955424 100644 --- a/docs/protocol/v2/draft/prompt-lifecycle.mdx +++ b/docs/protocol/v2/draft/prompt-lifecycle.mdx @@ -901,7 +901,7 @@ The following `compaction_update` fields are optional, nullable patches: | Field | Type | Meaning | | --------- | ---------------- | ------------------------------------------------------------------------------------- | | `summary` | `ContentBlock[]` | The unencrypted, user-displayable summary content produced or retained by compaction. | -| `error` | `string` | A human-readable error description. | +| `error` | `string` | Human-readable details of a compaction error, in plain text. | | `_meta` | `object` | Extensible metadata for the compaction entity. | For each patch field, omission leaves the stored value unchanged, `null` clears diff --git a/docs/protocol/v2/draft/schema.mdx b/docs/protocol/v2/draft/schema.mdx index 6f95d58ee..499266f03 100644 --- a/docs/protocol/v2/draft/schema.mdx +++ b/docs/protocol/v2/draft/schema.mdx @@ -1643,7 +1643,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d The ID of the session to retitle. - The new title for the session. + The new plain-text title for the session. Required and non-null. Omission and explicit `null` are both invalid. The Agent MAY normalize the title before storing it, for example by trimming whitespace or @@ -1673,7 +1673,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d - The title the Agent stored. + The plain-text title the Agent stored. This differs from the requested title if the Agent normalized it. Clients SHOULD display this value rather than the one they sent. @@ -2075,7 +2075,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d - A human-readable message describing what input is needed. + A plain-text message explaining to the user what the Agent needs and why. **Variants:** @@ -2510,7 +2510,7 @@ Omitted and `null` are equivalent and mean no structured subject was provided. - Human-readable title for the permission prompt. + Human-readable title shown with the permission prompt, in plain text. This title is specific to the permission prompt and does not update any subject's displayed title. @@ -3064,8 +3064,8 @@ Optional. Omitted and `null` are equivalent and mean the Agent does not indicate - Short text shown with the label, such as the credential source, for example -`API key helper`. MUST NOT contain credentials. + Short plain-text description shown with the label, such as the credential source +`API key helper`. Agents MUST NOT put credentials in this field. Optional. Omitted and `null` are equivalent and mean no description is reported. @@ -3077,7 +3077,7 @@ Optional. Omitted and `null` are equivalent and mean no email is reported. - Human-readable name for the account, suitable for display on its own, + Human-readable name for the account, suitable for display on its own as plain text, for example `Claude Max`, `OpenAI API key`, or `Vertex AI`. @@ -3134,7 +3134,7 @@ same-named variables in the base launch configuration. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. The discriminator value. Must be `"terminal"`. @@ -3169,7 +3169,7 @@ Omitted and `null` are equivalent and mean no description is provided. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. The discriminator value. Must be `"agent"`. @@ -3195,7 +3195,7 @@ data, and otherwise ignore the method or display it generically. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. Custom or future authentication method type. @@ -3238,7 +3238,7 @@ Omitted and `null` are equivalent and mean no description is provided. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. ## AuthMethodId @@ -3288,7 +3288,7 @@ same-named variables in the base launch configuration. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. ## AuthState @@ -3382,7 +3382,7 @@ Omitted and `null` are equivalent and mean the command takes no input. - Command name without the leading `/` (e.g., `create_plan`, `research_codebase`). + Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`. MUST NOT contain whitespace and MUST be unique within the command list. @@ -3419,7 +3419,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d May contain Markdown. - Skill name. The Client uses it to refer to the skill in a `skill` content block. + Plain-text skill name. The Client uses it to refer to the skill in a `skill` content block. MUST NOT contain whitespace and MUST be unique within the command list, across commands and skills. It need not match the `name` in the skill's @@ -3460,7 +3460,7 @@ slash command. May contain Markdown. - Command name. MUST NOT contain whitespace and MUST be unique within the command list. + Plain-text command name. MUST NOT contain whitespace and MUST be unique within the command list. Custom or future command type. @@ -3494,7 +3494,8 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d - A hint to display when the input hasn't been provided yet + Plain-text hint about the input the command expects. The Client can display it +when the user hasn't provided input yet. The discriminator value. Must be `"text"`. @@ -3778,13 +3779,13 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -3957,7 +3958,7 @@ Omitted and `null` are equivalent and mean the command takes no input. - Command name without the leading `/` (e.g., `create_plan`, `research_codebase`). + Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`. MUST NOT contain whitespace and MUST be unique within the command list. @@ -4140,7 +4141,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v The Agent-owned ID of this compaction, unique within the session. - Human-readable error details for the compaction. + Human-readable details of a compaction error, in plain text. CompactionStatus | null} > Current lifecycle status. @@ -4215,6 +4216,7 @@ See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/draft/c Text content. May be plain text or formatted with Markdown. All Agents MUST support text content blocks in prompts. +Clients SHOULD join adjacent text blocks without a separator before rendering. Clients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown extensions. @@ -4235,7 +4237,7 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Text payload carried by this content block. + Text payload carried by this content block. It may be plain text or Markdown. The discriminator value. Must be `"text"`. @@ -4348,7 +4350,8 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Optional human-readable details shown with this protocol object. + Optional human-readable description shown with the link. It describes the resource +contents in plain text. Omitted and `null` are equivalent and mean no description is provided. @@ -4366,7 +4369,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Human-readable name shown for this protocol object. + Human-readable name shown for the linked resource, in plain text. Optional size of the linked resource in bytes, if known. @@ -4377,7 +4380,7 @@ Omitted and `null` are equivalent and mean the size is not known. - Optional display title for end-user UI. + Optional plain-text display title for the resource, intended for end users. Omitted and `null` are equivalent and mean no title is provided. @@ -5480,7 +5483,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -5520,7 +5523,7 @@ Optional. Omitted and `null` are equivalent and mean no titled single-select cho declared by `oneOf`. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5552,7 +5555,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -5570,7 +5573,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5602,7 +5605,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -5620,7 +5623,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5652,13 +5655,13 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5690,7 +5693,7 @@ Optional. Omitted and `null` are equivalent and mean no default selections are p - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -5715,7 +5718,7 @@ Optional. Omitted and `null` are equivalent and mean there is no minimum selecti - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5789,7 +5792,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d - Optional description of what this schema represents. + Optional plain-text description of what the form asks the user to provide. Optional. Omitted and `null` are equivalent and mean no schema description is provided. @@ -5804,7 +5807,7 @@ Optional. Omitted and `null` are equivalent and mean no property names are requi - Optional title for the schema. + Optional plain-text title for the form as a whole. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5973,7 +5976,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Text payload carried by this content block. + The contents of the resource. Its `mimeType`, when provided, describes the format. URI associated with this resource or media payload. @@ -6040,13 +6043,13 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d The constant value for this option. - Human-readable description. + Plain-text description to help the user choose between options. Optional. Omitted and `null` are equivalent and mean no description is provided. - Human-readable title for this option. + Human-readable title for this choice, in plain text. `const` holds the corresponding value. ## EnvVariable @@ -6099,8 +6102,8 @@ define a shape: `UnsupportedProtocolVersionErrorData` for `-32022`, and - A string providing a short description of the error. -The message SHOULD be limited to a concise single sentence. + A short, human-readable description of the error, in plain text. +The sender SHOULD limit the message to a single concise sentence. ## ErrorCode @@ -6596,16 +6599,15 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d - Intended for programmatic or logical use, but can be used as a display -name fallback if title isn't present. + Name intended for programmatic or logical use. It can also serve as the +plain-text display name when `title` is absent. - Intended for UI and end-user contexts and optimized to be human-readable -and easily understood. + Optional human-readable title chosen to make the implementation easy to +recognize in the user interface. The title is plain text. -If not provided, the name SHOULD be used for display. - -Omitted and `null` are equivalent and mean the `name` is used for display. +Omission and `null` are equivalent. When displaying an implementation without a title, +the receiver SHOULD use `name`. @@ -6727,7 +6729,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -6745,7 +6747,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -7313,7 +7315,7 @@ Optional. Omitted and `null` are equivalent and mean no default selections are p - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -7338,7 +7340,7 @@ Optional. Omitted and `null` are equivalent and mean there is no minimum selecti - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -7431,7 +7433,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -7449,7 +7451,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -7475,7 +7477,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d What selecting this option means. Clients can also use it to choose how to display the option. - Human-readable label to display to the user. + Human-readable label for this choice, shown to the user as plain text. PermissionOptionId} required> Identifier for this permission option. MUST be unique within the request. @@ -8663,7 +8665,8 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Optional human-readable details shown with this protocol object. + Optional human-readable description shown with the link. It describes the resource +contents in plain text. Omitted and `null` are equivalent and mean no description is provided. @@ -8681,7 +8684,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Human-readable name shown for this protocol object. + Human-readable name shown for the linked resource, in plain text. Optional size of the linked resource in bytes, if known. @@ -8692,7 +8695,7 @@ Omitted and `null` are equivalent and mean the size is not known. - Optional display title for end-user UI. + Optional plain-text display title for the resource, intended for end users. Omitted and `null` are equivalent and mean no title is provided. @@ -9058,7 +9061,7 @@ Omitted and `null` are equivalent and mean no description is provided. - Human-readable label for the option. + Human-readable label the Client can display for the option, in plain text. **Variants:** @@ -9222,7 +9225,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d Identifier for this group. MUST be unique within the option. - Human-readable label for this group. + Human-readable label the Client can display as a plain-text group header. SessionConfigSelectOption[]} required> The set of option values in this group. MUST contain at least one value. @@ -9252,7 +9255,7 @@ Omitted and `null` are equivalent and mean no description is provided. - Human-readable label for this option value. + Human-readable label the Client can display for this option value, in plain text. SessionConfigValueId} required> Unique identifier for this option value. @@ -9373,7 +9376,7 @@ Agents that advertise the `session.archive` capability MUST include it on every Unique identifier for the session - Human-readable title for the session + Human-readable title for the session, in plain text. Omitted and `null` are equivalent and mean no title is provided. @@ -9414,7 +9417,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v - Human-readable title for the session. Set to null to clear. + Human-readable title for the session, in plain text. Set to `null` to clear. RFC 3339 timestamp of last activity. Set to null to clear. @@ -10560,7 +10563,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v The discriminator value. Must be `"session_info_update"`. - Human-readable title for the session. Set to null to clear. + Human-readable title for the session, in plain text. Set to `null` to clear. RFC 3339 timestamp of last activity. Set to null to clear. @@ -10671,7 +10674,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v The Agent-owned ID of this compaction, unique within the session. - Human-readable error details for the compaction. + Human-readable details of a compaction error, in plain text. The discriminator value. Must be `"compaction_update"`. @@ -10886,7 +10889,7 @@ A concrete `StateUpdate` replaces the entire previous snapshot. - The parent's human-readable display title for this child. It need not be unique. + The parent's human-readable display title for this child, in plain text. It need not be unique. Optional and nullable. Omitted means unchanged. `null` clears it. If no title is set, the Client chooses a fallback presentation. @@ -11042,7 +11045,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d May contain Markdown. - Skill name. The Client uses it to refer to the skill in a `skill` content block. + Plain-text skill name. The Client uses it to refer to the skill in a `skill` content block. MUST NOT contain whitespace and MUST be unique within the command list, across commands and skills. It need not match the `name` in the skill's @@ -11521,7 +11524,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -11561,7 +11564,7 @@ Optional. Omitted and `null` are equivalent and mean no titled single-select cho declared by `oneOf`. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -11690,7 +11693,7 @@ A concrete `StateUpdate` replaces the entire previous snapshot. - The parent's human-readable display title for this child. It need not be unique. + The parent's human-readable display title for this child, in plain text. It need not be unique. Optional and nullable. Omitted means unchanged. `null` clears it. If no title is set, the Client chooses a fallback presentation. @@ -12063,7 +12066,8 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/d - A hint to display when the input hasn't been provided yet + Plain-text hint about the input the command expects. The Client can display it +when the user hasn't provided input yet. ## TextContent @@ -12089,7 +12093,7 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Text payload carried by this content block. + Text payload carried by this content block. It may be plain text or Markdown. ## TextResourceContents @@ -12115,7 +12119,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Text payload carried by this content block. + The contents of the resource. Its `mimeType`, when provided, describes the format. URI associated with this resource or media payload. diff --git a/docs/protocol/v2/draft/session-config-options.mdx b/docs/protocol/v2/draft/session-config-options.mdx index 37f531631..1024fb82a 100644 --- a/docs/protocol/v2/draft/session-config-options.mdx +++ b/docs/protocol/v2/draft/session-config-options.mdx @@ -98,7 +98,7 @@ An Agent whose session has configuration options **MUST** include them, with the - Human-readable label for the option + Human-readable label the Client can display for the option, in plain text @@ -140,7 +140,7 @@ An Agent whose session has configuration options **MUST** include them, with the - Human-readable name to display + Human-readable label the Client can display for this value, in plain text @@ -149,8 +149,8 @@ An Agent whose session has configuration options **MUST** include them, with the ### Grouped select options -Select options may be grouped under labeled headers. Each -`SessionConfigSelectGroup` requires `groupId`, `name`, and an `options` array containing +Select options can be grouped under labeled headers. Each +`SessionConfigSelectGroup` requires `groupId`, a plain-text `name`, and an `options` array containing the same `SessionConfigSelectOption` objects used by flat selects. A group's `_meta` is optional. Value descriptions and `_meta` remain optional as described above. Each `groupId` **MUST** be unique within the option. diff --git a/docs/protocol/v2/draft/session-list.mdx b/docs/protocol/v2/draft/session-list.mdx index ca2e8565d..05b11544a 100644 --- a/docs/protocol/v2/draft/session-list.mdx +++ b/docs/protocol/v2/draft/session-list.mdx @@ -127,7 +127,7 @@ The Agent **MUST** respond with a list of sessions and optional pagination metad - Human-readable title for the session. May be auto-generated from the first prompt. + Human-readable title for the session, in plain text. The Agent can generate it from the first prompt. RFC 3339 timestamp of the last activity in the session. @@ -185,7 +185,7 @@ applies here. All fields are optional. Only include fields that have changed. Omitted fields are left unchanged. Set a nullable field to `null` to clear it. - Human-readable title for the session. Set to `null` to clear. + Human-readable title for the session, in plain text. Set to `null` to clear. diff --git a/docs/protocol/v2/draft/slash-commands.mdx b/docs/protocol/v2/draft/slash-commands.mdx index bf45d6a8f..a265e1b09 100644 --- a/docs/protocol/v2/draft/slash-commands.mdx +++ b/docs/protocol/v2/draft/slash-commands.mdx @@ -97,8 +97,9 @@ Each command carries a required `type` discriminator. The stable type is `comman - The command name without the leading `/`, such as `web`, `test`, or `plan`. - **MUST NOT** contain whitespace and **MUST** be unique within the list. + The plain-text command name without the leading `/`, such as `web`, `test`, or + `plan`. **MUST NOT** contain whitespace and **MUST** be unique within the + list. @@ -116,7 +117,8 @@ Command entries can add custom or future `type` values. Custom command types **M Currently supports text input with `type: "text"`: - A hint to display when the input hasn't been provided yet + Plain-text hint about the input the command expects. The Client can display it + when the user hasn't provided input yet. Command input specifications can add custom or future `type` values. Custom input types **MUST** begin with `_`. Unknown non-underscore input types are reserved for future ACP variants. Clients that cannot render an input specification **SHOULD** preserve it when storing, replaying, proxying, or forwarding command metadata, and otherwise display the command without structured input. @@ -183,11 +185,11 @@ Skills are delivered like other commands, in `availableCommands` in setup respon ``` - The name the Client uses to refer to the skill. **MUST NOT** contain - whitespace and **MUST** be unique within the list, across commands and skills. - It need not match the `name` in the skill's frontmatter. An Agent with two - skills of the same name, or a skill and a command of the same name, qualifies - one of them, for example as `plugin:pdf-processing`. + The plain-text name the Client uses to refer to the skill. **MUST NOT** + contain whitespace and **MUST** be unique within the list, across commands and + skills. It need not match the `name` in the skill's frontmatter. An Agent with + two skills of the same name, or a skill and a command of the same name, + qualifies one of them, for example as `plugin:pdf-processing`. diff --git a/docs/protocol/v2/draft/subagents.mdx b/docs/protocol/v2/draft/subagents.mdx index 5cf7416d4..c51dc47ff 100644 --- a/docs/protocol/v2/draft/subagents.mdx +++ b/docs/protocol/v2/draft/subagents.mdx @@ -84,8 +84,8 @@ The rule also applies to short-lived work. - The parent's display label for the child. It need not be unique. If none is - set, the Client chooses a fallback. + The parent's display label for the child, in plain text. It need not be + unique. If none is set, the Client chooses a fallback. diff --git a/docs/protocol/v2/draft/tool-calls.mdx b/docs/protocol/v2/draft/tool-calls.mdx index 72cafb2da..cd90d07b0 100644 --- a/docs/protocol/v2/draft/tool-calls.mdx +++ b/docs/protocol/v2/draft/tool-calls.mdx @@ -40,8 +40,8 @@ When the language model requests a tool invocation, the Agent **SHOULD** report A human-readable title describing what the tool is doing, as [plain - text](/protocol/v2/draft/content#text-content). Agents **SHOULD** include the - title the first time they report a `toolCallId`. + text](/protocol/v2/draft/content#plain-text-and-markdown). Agents **SHOULD** + include the title the first time they report a `toolCallId`. @@ -220,7 +220,7 @@ The Agent **MAY** request permission from the user before proceeding with an ope "params": { "sessionId": "sess_abc123def456", "title": "Approve file edit?", - "description": "Allow the agent to edit src/main.rs?", + "description": "Allow the Agent to edit `/home/user/project/src/main.rs`?", "subject": { "type": "tool_call", "toolCall": { @@ -248,8 +248,9 @@ The Agent **MAY** request permission from the user before proceeding with an ope - Title shown with the permission prompt. This text is separate from any - `toolCall` update and does not replace the tool-call title. + Human-readable title shown with the permission prompt, in plain text. This + text is separate from any `toolCall` update and does not replace the tool-call + title. @@ -362,7 +363,7 @@ Each permission option provided to the Client contains: - Human-readable label to display to the user + Human-readable label for this choice, shown to the user as plain text diff --git a/docs/protocol/v2/elicitation.mdx b/docs/protocol/v2/elicitation.mdx index 8612fdf36..4ac56e5af 100644 --- a/docs/protocol/v2/elicitation.mdx +++ b/docs/protocol/v2/elicitation.mdx @@ -71,7 +71,7 @@ Every request has these fields. Each mode adds its own. - Text shown to the user that explains what is requested and why. + A plain-text message explaining to the user what the Agent needs and why. Scope is represented with flattened fields. Exactly one of `sessionId` or @@ -161,7 +161,9 @@ optional `required`, `title`, and `description`. Each property is one of: | Boolean | `type: "boolean"` | `default` | | Multi select | `type: "array"` with `items` of `{ "type": "string", "enum": [...] }` or `{ "anyOf": [...] }` (`const` and `title` options) | `minItems`, `maxItems`, `default` | -Every property may also have `title` and `description`. Each `oneOf` or `anyOf` option has a `const` value and a `title`, and may also have a `description`. Each `enum`, `oneOf`, and `anyOf` list needs at least one option. Clients treat an unknown +Every property may also have `title` and `description`. Each `oneOf` or `anyOf` option has a `const` value and a `title`, and may also have a `description`. The `title` labels the form, field, or choice for the user. The `description` provides additional guidance. Both are plain text. + +Each `enum`, `oneOf`, and `anyOf` list needs at least one option. Clients treat an unknown `format` as plain text. Accepted `content` maps each answered property name to its value: a string for text and single-select properties, a number for `number` and `integer`, a boolean for `boolean`, and an array of strings for multi-select. Unanswered properties are omitted, not set to `null`. Custom or future property types may use other JSON values. In multi-select `items`, the titled `anyOf` form omits `type`. When `type` is `"string"`, `enum` is required even if `anyOf` is also present. diff --git a/docs/protocol/v2/error.mdx b/docs/protocol/v2/error.mdx index c18f158f4..6913bd0a8 100644 --- a/docs/protocol/v2/error.mdx +++ b/docs/protocol/v2/error.mdx @@ -6,7 +6,7 @@ description: "Error handling in the Agent Client Protocol" Failed requests return a [JSON-RPC 2.0 error object](https://www.jsonrpc.org/specification#error_object): - `code`: an integer identifying the kind of error -- `message`: a short human-readable description +- `message`: a short, human-readable description of the error, in plain text - `data` (optional): additional information whose shape depends on the code ```json diff --git a/docs/protocol/v2/initialization.mdx b/docs/protocol/v2/initialization.mdx index 8b59ad7a7..d7531e0c4 100644 --- a/docs/protocol/v2/initialization.mdx +++ b/docs/protocol/v2/initialization.mdx @@ -312,14 +312,15 @@ Optionally, they **MAY** support more types of [content](/protocol/v2/content) b Both Clients and Agents **MUST** provide information about their implementation in the `info` field. It takes the following three fields: - Intended for programmatic or logical use, but can be used as a display name - fallback if title isn't present. + Name intended for programmatic or logical use. It can also serve as the + plain-text display name when `title` is absent. - Intended for UI and end-user contexts and optimized to be human-readable and - easily understood. Optional. Omitted and `null` are equivalent. If not - provided, the name **SHOULD** be used for display. + Optional human-readable title chosen to make the implementation easy to + recognize in the user interface. The title is plain text. Omission and `null` + are equivalent. When displaying an implementation without a title, the + receiver **SHOULD** use `name`. diff --git a/docs/protocol/v2/migration.mdx b/docs/protocol/v2/migration.mdx index c3c451e28..d24f2df6d 100644 --- a/docs/protocol/v2/migration.mdx +++ b/docs/protocol/v2/migration.mdx @@ -904,7 +904,7 @@ Agents **MUST** reject a prompt that contains a content type that is neither bas If you maintain a validator or generated models, v2 also tightens schema-level details that v1 left loose: base64 payloads (image/audio and terminal `data`, resource `blob`) are marked with `contentEncoding: "base64"`, URI fields are marked `format: "uri"`, `SessionInfo.updatedAt` and `SessionInfoUpdate.updatedAt` are marked `format: "date-time"`, `annotations.priority` is bounded to the inclusive range 0 to 1, multi-select elicitation `items` need at least one option, `session/prompt` `prompt` and `systemPrompt` `content` each need at least one content block, permission `options`, config `select` options, each config option group's `options`, and single-select elicitation `enum` and `oneOf` each need at least one entry, a tool call location's `line` starts at 1, `resource_link` `size` is unsigned, form-mode `requestedSchema` requires `type: "object"` and `properties`, and setup-response `configOptions` is no longer nullable: omit it rather than sending `null`. Two details are looser: a value in an accepted elicitation's `content` can be any JSON value, for custom or future property types, and `TerminalExitStatus.exitCode` is signed, so it can be negative. -v2 also says which text is Markdown. Text content blocks may contain Markdown, as in v1. A plan entry `content` may contain Markdown too, and so may the `description` of an authentication method, a command, a config option and each of its values, a permission request, and a subagent. Other strings shown to users, such as a tool call `title`, are plain text, and Clients do not render them as Markdown. v1 did not state a format for either. +Text content blocks can contain Markdown in both versions. For other display strings, v2 makes plain text the default and names the exceptions. For example, a tool call `title` is plain text, while a plan entry's `content` and a command's `description` can contain Markdown. v1 did not specify formats for those fields. See [Plain text and Markdown](/protocol/v2/content#plain-text-and-markdown) for the full list. ## Slash commands diff --git a/docs/protocol/v2/prompt-lifecycle.mdx b/docs/protocol/v2/prompt-lifecycle.mdx index 7b9697fc4..568d16040 100644 --- a/docs/protocol/v2/prompt-lifecycle.mdx +++ b/docs/protocol/v2/prompt-lifecycle.mdx @@ -830,7 +830,7 @@ The following `compaction_update` fields are optional, nullable patches: | Field | Type | Meaning | | --------- | ---------------- | ------------------------------------------------------------------------------------- | | `summary` | `ContentBlock[]` | The unencrypted, user-displayable summary content produced or retained by compaction. | -| `error` | `string` | A human-readable error description. | +| `error` | `string` | Human-readable details of a compaction error, in plain text. | | `_meta` | `object` | Extensible metadata for the compaction entity. | For each patch field, omission leaves the stored value unchanged, `null` clears diff --git a/docs/protocol/v2/schema.mdx b/docs/protocol/v2/schema.mdx index 9c4a94e15..c1b5c2bcc 100644 --- a/docs/protocol/v2/schema.mdx +++ b/docs/protocol/v2/schema.mdx @@ -1136,7 +1136,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e - A human-readable message describing what input is needed. + A plain-text message explaining to the user what the Agent needs and why. **Variants:** @@ -1473,7 +1473,7 @@ Omitted and `null` are equivalent and mean no structured subject was provided. - Human-readable title for the permission prompt. + Human-readable title shown with the permission prompt, in plain text. This title is specific to the permission prompt and does not update any subject's displayed title. @@ -1858,7 +1858,7 @@ same-named variables in the base launch configuration. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. The discriminator value. Must be `"terminal"`. @@ -1893,7 +1893,7 @@ Omitted and `null` are equivalent and mean no description is provided. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. The discriminator value. Must be `"agent"`. @@ -1919,7 +1919,7 @@ data, and otherwise ignore the method or display it generically. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. Custom or future authentication method type. @@ -1962,7 +1962,7 @@ Omitted and `null` are equivalent and mean no description is provided. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. ## AuthMethodId @@ -2012,7 +2012,7 @@ same-named variables in the base launch configuration. Unique identifier for this authentication method. - Human-readable name of the authentication method. + Human-readable name of the authentication method, shown to users as plain text. ## AvailableCommand @@ -2047,7 +2047,7 @@ Omitted and `null` are equivalent and mean the command takes no input. - Command name without the leading `/` (e.g., `create_plan`, `research_codebase`). + Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`. MUST NOT contain whitespace and MUST be unique within the command list. @@ -2078,7 +2078,7 @@ slash command. May contain Markdown. - Command name. MUST NOT contain whitespace and MUST be unique within the command list. + Plain-text command name. MUST NOT contain whitespace and MUST be unique within the command list. Custom or future command type. @@ -2112,7 +2112,8 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e - A hint to display when the input hasn't been provided yet + Plain-text hint about the input the command expects. The Client can display it +when the user hasn't provided input yet. The discriminator value. Must be `"text"`. @@ -2396,13 +2397,13 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -2523,7 +2524,7 @@ Omitted and `null` are equivalent and mean the command takes no input. - Command name without the leading `/` (e.g., `create_plan`, `research_codebase`). + Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`. MUST NOT contain whitespace and MUST be unique within the command list. @@ -2649,7 +2650,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v The Agent-owned ID of this compaction, unique within the session. - Human-readable error details for the compaction. + Human-readable details of a compaction error, in plain text. CompactionStatus | null} > Current lifecycle status. @@ -2724,6 +2725,7 @@ See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/content Text content. May be plain text or formatted with Markdown. All Agents MUST support text content blocks in prompts. +Clients SHOULD join adjacent text blocks without a separator before rendering. Clients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown extensions. @@ -2744,7 +2746,7 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Text payload carried by this content block. + Text payload carried by this content block. It may be plain text or Markdown. The discriminator value. Must be `"text"`. @@ -2857,7 +2859,8 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Optional human-readable details shown with this protocol object. + Optional human-readable description shown with the link. It describes the resource +contents in plain text. Omitted and `null` are equivalent and mean no description is provided. @@ -2875,7 +2878,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Human-readable name shown for this protocol object. + Human-readable name shown for the linked resource, in plain text. Optional size of the linked resource in bytes, if known. @@ -2886,7 +2889,7 @@ Omitted and `null` are equivalent and mean the size is not known. - Optional display title for end-user UI. + Optional plain-text display title for the resource, intended for end users. Omitted and `null` are equivalent and mean no title is provided. @@ -3529,7 +3532,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -3569,7 +3572,7 @@ Optional. Omitted and `null` are equivalent and mean no titled single-select cho declared by `oneOf`. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -3601,7 +3604,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -3619,7 +3622,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -3651,7 +3654,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -3669,7 +3672,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -3701,13 +3704,13 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -3739,7 +3742,7 @@ Optional. Omitted and `null` are equivalent and mean no default selections are p - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -3764,7 +3767,7 @@ Optional. Omitted and `null` are equivalent and mean there is no minimum selecti - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -3838,7 +3841,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e - Optional description of what this schema represents. + Optional plain-text description of what the form asks the user to provide. Optional. Omitted and `null` are equivalent and mean no schema description is provided. @@ -3853,7 +3856,7 @@ Optional. Omitted and `null` are equivalent and mean no property names are requi - Optional title for the schema. + Optional plain-text title for the form as a whole. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -4022,7 +4025,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Text payload carried by this content block. + The contents of the resource. Its `mimeType`, when provided, describes the format. URI associated with this resource or media payload. @@ -4089,13 +4092,13 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e The constant value for this option. - Human-readable description. + Plain-text description to help the user choose between options. Optional. Omitted and `null` are equivalent and mean no description is provided. - Human-readable title for this option. + Human-readable title for this choice, in plain text. `const` holds the corresponding value. ## EnvVariable @@ -4148,8 +4151,8 @@ define a shape: `UnsupportedProtocolVersionErrorData` for `-32022`, and - A string providing a short description of the error. -The message SHOULD be limited to a concise single sentence. + A short, human-readable description of the error, in plain text. +The sender SHOULD limit the message to a single concise sentence. ## ErrorCode @@ -4633,16 +4636,15 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e - Intended for programmatic or logical use, but can be used as a display -name fallback if title isn't present. + Name intended for programmatic or logical use. It can also serve as the +plain-text display name when `title` is absent. - Intended for UI and end-user contexts and optimized to be human-readable -and easily understood. + Optional human-readable title chosen to make the implementation easy to +recognize in the user interface. The title is plain text. -If not provided, the name SHOULD be used for display. - -Omitted and `null` are equivalent and mean the `name` is used for display. +Omission and `null` are equivalent. When displaying an implementation without a title, +the receiver SHOULD use `name`. @@ -4673,7 +4675,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -4691,7 +4693,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5058,7 +5060,7 @@ Optional. Omitted and `null` are equivalent and mean no default selections are p - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -5083,7 +5085,7 @@ Optional. Omitted and `null` are equivalent and mean there is no minimum selecti - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5176,7 +5178,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -5194,7 +5196,7 @@ Optional. Omitted and `null` are equivalent and mean there is no inclusive lower - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -5220,7 +5222,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e What selecting this option means. Clients can also use it to choose how to display the option. - Human-readable label to display to the user. + Human-readable label for this choice, shown to the user as plain text. PermissionOptionId} required> Identifier for this permission option. MUST be unique within the request. @@ -6050,7 +6052,8 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Optional human-readable details shown with this protocol object. + Optional human-readable description shown with the link. It describes the resource +contents in plain text. Omitted and `null` are equivalent and mean no description is provided. @@ -6068,7 +6071,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Human-readable name shown for this protocol object. + Human-readable name shown for the linked resource, in plain text. Optional size of the linked resource in bytes, if known. @@ -6079,7 +6082,7 @@ Omitted and `null` are equivalent and mean the size is not known. - Optional display title for end-user UI. + Optional plain-text display title for the resource, intended for end users. Omitted and `null` are equivalent and mean no title is provided. @@ -6327,7 +6330,7 @@ Omitted and `null` are equivalent and mean no description is provided. - Human-readable label for the option. + Human-readable label the Client can display for the option, in plain text. **Variants:** @@ -6482,7 +6485,7 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e Identifier for this group. MUST be unique within the option. - Human-readable label for this group. + Human-readable label the Client can display as a plain-text group header. SessionConfigSelectOption[]} required> The set of option values in this group. MUST contain at least one value. @@ -6512,7 +6515,7 @@ Omitted and `null` are equivalent and mean no description is provided. - Human-readable label for this option value. + Human-readable label the Client can display for this option value, in plain text. SessionConfigValueId} required> Unique identifier for this option value. @@ -6599,7 +6602,7 @@ reports no additional roots. Unique identifier for the session - Human-readable title for the session + Human-readable title for the session, in plain text. Omitted and `null` are equivalent and mean no title is provided. @@ -6640,7 +6643,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v - Human-readable title for the session. Set to null to clear. + Human-readable title for the session, in plain text. Set to `null` to clear. RFC 3339 timestamp of last activity. Set to null to clear. @@ -7666,7 +7669,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v The discriminator value. Must be `"session_info_update"`. - Human-readable title for the session. Set to null to clear. + Human-readable title for the session, in plain text. Set to `null` to clear. RFC 3339 timestamp of last activity. Set to null to clear. @@ -7777,7 +7780,7 @@ See protocol docs: [Metadata Patches](https://agentclientprotocol.com/protocol/v The Agent-owned ID of this compaction, unique within the session. - Human-readable error details for the compaction. + Human-readable details of a compaction error, in plain text. The discriminator value. Must be `"compaction_update"`. @@ -7910,7 +7913,7 @@ A concrete `StateUpdate` replaces the entire previous snapshot. - The parent's human-readable display title for this child. It need not be unique. + The parent's human-readable display title for this child, in plain text. It need not be unique. Optional and nullable. Omitted means unchanged. `null` clears it. If no title is set, the Client chooses a fallback presentation. @@ -8441,7 +8444,7 @@ Optional. Omitted and `null` are equivalent and mean no default value is provide - Human-readable description. + Plain-text help for the user filling out this field. Optional. Omitted and `null` are equivalent and mean no description is provided. @@ -8481,7 +8484,7 @@ Optional. Omitted and `null` are equivalent and mean no titled single-select cho declared by `oneOf`. - Optional title for the property. + Optional plain-text label for this field in the form. Optional. Omitted and `null` are equivalent and mean no title is provided. @@ -8610,7 +8613,7 @@ A concrete `StateUpdate` replaces the entire previous snapshot. - The parent's human-readable display title for this child. It need not be unique. + The parent's human-readable display title for this child, in plain text. It need not be unique. Optional and nullable. Omitted means unchanged. `null` clears it. If no title is set, the Client chooses a fallback presentation. @@ -8983,7 +8986,8 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/e - A hint to display when the input hasn't been provided yet + Plain-text hint about the input the command expects. The Client can display it +when the user hasn't provided input yet. ## TextContent @@ -9009,7 +9013,7 @@ Omitted and `null` are equivalent and mean no annotations are provided. - Text payload carried by this content block. + Text payload carried by this content block. It may be plain text or Markdown. ## TextResourceContents @@ -9035,7 +9039,7 @@ Omitted and `null` are equivalent and mean the MIME type is not specified. - Text payload carried by this content block. + The contents of the resource. Its `mimeType`, when provided, describes the format. URI associated with this resource or media payload. diff --git a/docs/protocol/v2/session-config-options.mdx b/docs/protocol/v2/session-config-options.mdx index b1e628866..a5ad1f4e1 100644 --- a/docs/protocol/v2/session-config-options.mdx +++ b/docs/protocol/v2/session-config-options.mdx @@ -98,7 +98,7 @@ An Agent whose session has configuration options **MUST** include them, with the - Human-readable label for the option + Human-readable label the Client can display for the option, in plain text @@ -140,7 +140,7 @@ An Agent whose session has configuration options **MUST** include them, with the - Human-readable name to display + Human-readable label the Client can display for this value, in plain text @@ -149,8 +149,8 @@ An Agent whose session has configuration options **MUST** include them, with the ### Grouped select options -Select options may be grouped under labeled headers. Each -`SessionConfigSelectGroup` requires `groupId`, `name`, and an `options` array containing +Select options can be grouped under labeled headers. Each +`SessionConfigSelectGroup` requires `groupId`, a plain-text `name`, and an `options` array containing the same `SessionConfigSelectOption` objects used by flat selects. A group's `_meta` is optional. Value descriptions and `_meta` remain optional as described above. Each `groupId` **MUST** be unique within the option. diff --git a/docs/protocol/v2/session-list.mdx b/docs/protocol/v2/session-list.mdx index 09d3f31b9..f03ef3c57 100644 --- a/docs/protocol/v2/session-list.mdx +++ b/docs/protocol/v2/session-list.mdx @@ -127,7 +127,7 @@ The Agent **MUST** respond with a list of sessions and optional pagination metad - Human-readable title for the session. May be auto-generated from the first prompt. + Human-readable title for the session, in plain text. The Agent can generate it from the first prompt. RFC 3339 timestamp of the last activity in the session. @@ -182,7 +182,7 @@ Agents **SHOULD** send a `session_info_update` notification via `session/update` All fields are optional. Only include fields that have changed. Omitted fields are left unchanged. Set a nullable field to `null` to clear it. - Human-readable title for the session. Set to `null` to clear. + Human-readable title for the session, in plain text. Set to `null` to clear. diff --git a/docs/protocol/v2/slash-commands.mdx b/docs/protocol/v2/slash-commands.mdx index 541aa5c56..56e06772f 100644 --- a/docs/protocol/v2/slash-commands.mdx +++ b/docs/protocol/v2/slash-commands.mdx @@ -94,8 +94,9 @@ Each command carries a required `type` discriminator. Currently the only type is - The command name without the leading `/`, such as `web`, `test`, or `plan`. - **MUST NOT** contain whitespace and **MUST** be unique within the list. + The plain-text command name without the leading `/`, such as `web`, `test`, or + `plan`. **MUST NOT** contain whitespace and **MUST** be unique within the + list. @@ -113,7 +114,8 @@ Command entries can add custom or future `type` values. Custom command types **M Currently supports text input with `type: "text"`: - A hint to display when the input hasn't been provided yet + Plain-text hint about the input the command expects. The Client can display it + when the user hasn't provided input yet. Command input specifications can add custom or future `type` values. Custom input types **MUST** begin with `_`. Unknown non-underscore input types are reserved for future ACP variants. Clients that cannot render an input specification **SHOULD** preserve it when storing, replaying, proxying, or forwarding command metadata, and otherwise display the command without structured input. diff --git a/docs/protocol/v2/subagents.mdx b/docs/protocol/v2/subagents.mdx index a2edc1b20..b9623af3d 100644 --- a/docs/protocol/v2/subagents.mdx +++ b/docs/protocol/v2/subagents.mdx @@ -84,8 +84,8 @@ The rule also applies to short-lived work. - The parent's display label for the child. It need not be unique. If none is - set, the Client chooses a fallback. + The parent's display label for the child, in plain text. It need not be + unique. If none is set, the Client chooses a fallback. diff --git a/docs/protocol/v2/tool-calls.mdx b/docs/protocol/v2/tool-calls.mdx index 79bc65cbe..ac6af4400 100644 --- a/docs/protocol/v2/tool-calls.mdx +++ b/docs/protocol/v2/tool-calls.mdx @@ -40,8 +40,8 @@ When the language model requests a tool invocation, the Agent **SHOULD** report A human-readable title describing what the tool is doing, as [plain - text](/protocol/v2/content#text-content). Agents **SHOULD** include the title - the first time they report a `toolCallId`. + text](/protocol/v2/content#plain-text-and-markdown). Agents **SHOULD** include + the title the first time they report a `toolCallId`. @@ -220,7 +220,7 @@ The Agent **MAY** request permission from the user before proceeding with an ope "params": { "sessionId": "sess_abc123def456", "title": "Approve file edit?", - "description": "Allow the agent to edit src/main.rs?", + "description": "Allow the Agent to edit `/home/user/project/src/main.rs`?", "subject": { "type": "tool_call", "toolCall": { @@ -248,8 +248,9 @@ The Agent **MAY** request permission from the user before proceeding with an ope - Title shown with the permission prompt. This text is separate from any - `toolCall` update and does not replace the tool-call title. + Human-readable title shown with the permission prompt, in plain text. This + text is separate from any `toolCall` update and does not replace the tool-call + title. @@ -362,7 +363,7 @@ Each permission option provided to the Client contains: - Human-readable label to display to the user + Human-readable label for this choice, shown to the user as plain text diff --git a/schema/v2/schema.json b/schema/v2/schema.json index f2b5f9527..cabb6ba66 100644 --- a/schema/v2/schema.json +++ b/schema/v2/schema.json @@ -208,7 +208,7 @@ ] }, "title": { - "description": "Human-readable title for the permission prompt.\n\nThis title is specific to the permission prompt and does not update any\nsubject's displayed title.", + "description": "Human-readable title shown with the permission prompt, in plain text.\n\nThis title is specific to the permission prompt and does not update any\nsubject's displayed title.", "type": "string" }, "description": { @@ -665,7 +665,7 @@ "description": "Content blocks represent displayable information in the Agent Client Protocol.\n\nContent blocks appear in:\n- User prompts sent via `session/prompt`\n- Language model output reported through `session/update` notifications as\n message updates or streamed chunks\n- Progress updates and results from tool calls\n\nThis structure is compatible with the Model Context Protocol (MCP), so Agents can\nforward content from MCP tool outputs without transformation.\n\nSee protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/content)", "anyOf": [ { - "description": "Text content. May be plain text or formatted with Markdown.\n\nAll Agents MUST support text content blocks in prompts.\nClients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown\nextensions.", + "description": "Text content. May be plain text or formatted with Markdown.\n\nAll Agents MUST support text content blocks in prompts.\nClients SHOULD join adjacent text blocks without a separator before rendering.\nClients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown\nextensions.", "type": "object", "properties": { "type": { @@ -872,7 +872,7 @@ "type": "object", "properties": { "text": { - "description": "Text payload carried by this content block.", + "description": "Text payload carried by this content block. It may be plain text or Markdown.", "type": "string" }, "annotations": { @@ -1058,7 +1058,7 @@ "type": "object", "properties": { "name": { - "description": "Human-readable name shown for this protocol object.", + "description": "Human-readable name shown for the linked resource, in plain text.", "type": "string" }, "uri": { @@ -1067,12 +1067,12 @@ "format": "uri" }, "title": { - "description": "Optional display title for end-user UI.\n\nOmitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text display title for the resource, intended for end users.\n\nOmitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Optional human-readable details shown with this protocol object.\n\nOmitted and `null` are equivalent and mean no description is provided.", + "description": "Optional human-readable description shown with the link. It describes the resource\ncontents in plain text.\n\nOmitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -1153,7 +1153,7 @@ "type": "object", "properties": { "text": { - "description": "Text payload carried by this content block.", + "description": "The contents of the resource. Its `mimeType`, when provided, describes the format.", "type": "string" }, "uri": { @@ -1795,7 +1795,7 @@ ] }, "name": { - "description": "Human-readable label to display to the user.", + "description": "Human-readable label for this choice, shown to the user as plain text.", "type": "string" }, "kind": { @@ -1854,7 +1854,7 @@ "type": "object", "properties": { "message": { - "description": "A human-readable message describing what input is needed.", + "description": "A plain-text message explaining to the user what the Agent needs and why.", "type": "string" }, "_meta": { @@ -2029,7 +2029,7 @@ ] }, "title": { - "description": "Optional title for the schema.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text title for the form as a whole.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2048,7 +2048,7 @@ } }, "description": { - "description": "Optional description of what this schema represents.\n\nOptional. Omitted and `null` are equivalent and mean no schema description is provided.", + "description": "Optional plain-text description of what the form asks the user to provide.\n\nOptional. Omitted and `null` are equivalent and mean no schema description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2262,11 +2262,11 @@ "type": "string" }, "title": { - "description": "Human-readable title for this option.", + "description": "Human-readable title for this choice, in plain text. `const` holds the corresponding value.", "type": "string" }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text description to help the user choose between options.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2284,12 +2284,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2350,12 +2350,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2388,12 +2388,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2426,12 +2426,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2557,12 +2557,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2927,11 +2927,11 @@ "type": "object", "properties": { "name": { - "description": "Intended for programmatic or logical use, but can be used as a display\nname fallback if title isn't present.", + "description": "Name intended for programmatic or logical use. It can also serve as the\nplain-text display name when `title` is absent.", "type": "string" }, "title": { - "description": "Intended for UI and end-user contexts and optimized to be human-readable\nand easily understood.\n\nIf not provided, the name SHOULD be used for display.\n\nOmitted and `null` are equivalent and mean the `name` is used for display.", + "description": "Optional human-readable title chosen to make the implementation easy to\nrecognize in the user interface. The title is plain text.\n\nOmission and `null` are equivalent. When displaying an implementation without a title,\nthe receiver SHOULD use `name`.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -3349,7 +3349,7 @@ ] }, "name": { - "description": "Human-readable name of the authentication method.", + "description": "Human-readable name of the authentication method, shown to users as plain text.", "type": "string" } }, @@ -3420,7 +3420,7 @@ ] }, "name": { - "description": "Human-readable name of the authentication method.", + "description": "Human-readable name of the authentication method, shown to users as plain text.", "type": "string" }, "description": { @@ -3466,7 +3466,7 @@ ] }, "name": { - "description": "Human-readable name of the authentication method.", + "description": "Human-readable name of the authentication method, shown to users as plain text.", "type": "string" }, "description": { @@ -3579,7 +3579,7 @@ ] }, "name": { - "description": "Human-readable label for the option.", + "description": "Human-readable label the Client can display for the option, in plain text.", "type": "string" }, "description": { @@ -3753,7 +3753,7 @@ ] }, "name": { - "description": "Human-readable label for this option value.", + "description": "Human-readable label the Client can display for this option value, in plain text.", "type": "string" }, "description": { @@ -3783,7 +3783,7 @@ ] }, "name": { - "description": "Human-readable label for this group.", + "description": "Human-readable label the Client can display as a plain-text group header.", "type": "string" }, "options": { @@ -3872,7 +3872,7 @@ "type": "string" }, "name": { - "description": "Command name. MUST NOT contain whitespace and MUST be unique within the command list.", + "description": "Plain-text command name. MUST NOT contain whitespace and MUST be unique within the command list.", "type": "string" }, "description": { @@ -3952,7 +3952,7 @@ "type": "object", "properties": { "hint": { - "description": "A hint to display when the input hasn't been provided yet", + "description": "Plain-text hint about the input the command expects. The Client can display it\nwhen the user hasn't provided input yet.", "type": "string" }, "_meta": { @@ -3969,7 +3969,7 @@ "type": "object", "properties": { "name": { - "description": "Command name without the leading `/` (e.g., `create_plan`, `research_codebase`).\n\nMUST NOT contain whitespace and MUST be unique within the command list.", + "description": "Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`.\n\nMUST NOT contain whitespace and MUST be unique within the command list.", "type": "string" }, "description": { @@ -4061,7 +4061,7 @@ "x-deserialize-default-on-null": true }, "title": { - "description": "Human-readable title for the session\n\nOmitted and `null` are equivalent and mean no title is provided.", + "description": "Human-readable title for the session, in plain text.\n\nOmitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -4261,7 +4261,7 @@ ] }, "message": { - "description": "A string providing a short description of the error.\nThe message SHOULD be limited to a concise single sentence.", + "description": "A short, human-readable description of the error, in plain text.\nThe sender SHOULD limit the message to a single concise sentence.", "type": "string" }, "data": { @@ -6630,7 +6630,7 @@ "type": "object", "properties": { "title": { - "description": "Human-readable title for the session. Set to null to clear.", + "description": "Human-readable title for the session, in plain text. Set to `null` to clear.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -6831,7 +6831,7 @@ "x-deserialize-skip-invalid-items": true }, "error": { - "description": "Human-readable error details for the compaction.", + "description": "Human-readable details of a compaction error, in plain text.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -6934,7 +6934,7 @@ ] }, "title": { - "description": "The parent's human-readable display title for this child. It need not be unique.\n\nOptional and nullable. Omitted means unchanged. `null` clears it. If no\ntitle is set, the Client chooses a fallback presentation.", + "description": "The parent's human-readable display title for this child, in plain text. It need not be unique.\n\nOptional and nullable. Omitted means unchanged. `null` clears it. If no\ntitle is set, the Client chooses a fallback presentation.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, diff --git a/schema/v2/schema.unstable.json b/schema/v2/schema.unstable.json index 5a3514c0b..db1c761d2 100644 --- a/schema/v2/schema.unstable.json +++ b/schema/v2/schema.unstable.json @@ -255,7 +255,7 @@ ] }, "title": { - "description": "Human-readable title for the permission prompt.\n\nThis title is specific to the permission prompt and does not update any\nsubject's displayed title.", + "description": "Human-readable title shown with the permission prompt, in plain text.\n\nThis title is specific to the permission prompt and does not update any\nsubject's displayed title.", "type": "string" }, "description": { @@ -712,7 +712,7 @@ "description": "Content blocks represent displayable information in the Agent Client Protocol.\n\nContent blocks appear in:\n- User prompts sent via `session/prompt`\n- Language model output reported through `session/update` notifications as\n message updates or streamed chunks\n- Progress updates and results from tool calls\n\nThis structure is compatible with the Model Context Protocol (MCP), so Agents can\nforward content from MCP tool outputs without transformation.\n\nSee protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/draft/content)", "anyOf": [ { - "description": "Text content. May be plain text or formatted with Markdown.\n\nAll Agents MUST support text content blocks in prompts.\nClients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown\nextensions.", + "description": "Text content. May be plain text or formatted with Markdown.\n\nAll Agents MUST support text content blocks in prompts.\nClients SHOULD join adjacent text blocks without a separator before rendering.\nClients SHOULD render this text as CommonMark and MAY support GitHub Flavored Markdown\nextensions.", "type": "object", "properties": { "type": { @@ -945,7 +945,7 @@ "type": "object", "properties": { "text": { - "description": "Text payload carried by this content block.", + "description": "Text payload carried by this content block. It may be plain text or Markdown.", "type": "string" }, "annotations": { @@ -1131,7 +1131,7 @@ "type": "object", "properties": { "name": { - "description": "Human-readable name shown for this protocol object.", + "description": "Human-readable name shown for the linked resource, in plain text.", "type": "string" }, "uri": { @@ -1140,12 +1140,12 @@ "format": "uri" }, "title": { - "description": "Optional display title for end-user UI.\n\nOmitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text display title for the resource, intended for end users.\n\nOmitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Optional human-readable details shown with this protocol object.\n\nOmitted and `null` are equivalent and mean no description is provided.", + "description": "Optional human-readable description shown with the link. It describes the resource\ncontents in plain text.\n\nOmitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -1226,7 +1226,7 @@ "type": "object", "properties": { "text": { - "description": "Text payload carried by this content block.", + "description": "The contents of the resource. Its `mimeType`, when provided, describes the format.", "type": "string" }, "uri": { @@ -1885,7 +1885,7 @@ ] }, "name": { - "description": "Human-readable label to display to the user.", + "description": "Human-readable label for this choice, shown to the user as plain text.", "type": "string" }, "kind": { @@ -1944,7 +1944,7 @@ "type": "object", "properties": { "message": { - "description": "A human-readable message describing what input is needed.", + "description": "A plain-text message explaining to the user what the Agent needs and why.", "type": "string" }, "_meta": { @@ -2119,7 +2119,7 @@ ] }, "title": { - "description": "Optional title for the schema.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text title for the form as a whole.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2138,7 +2138,7 @@ } }, "description": { - "description": "Optional description of what this schema represents.\n\nOptional. Omitted and `null` are equivalent and mean no schema description is provided.", + "description": "Optional plain-text description of what the form asks the user to provide.\n\nOptional. Omitted and `null` are equivalent and mean no schema description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2352,11 +2352,11 @@ "type": "string" }, "title": { - "description": "Human-readable title for this option.", + "description": "Human-readable title for this choice, in plain text. `const` holds the corresponding value.", "type": "string" }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text description to help the user choose between options.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2374,12 +2374,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2440,12 +2440,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2478,12 +2478,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2516,12 +2516,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -2647,12 +2647,12 @@ "type": "object", "properties": { "title": { - "description": "Optional title for the property.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", + "description": "Optional plain-text label for this field in the form.\n\nOptional. Omitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, "description": { - "description": "Human-readable description.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", + "description": "Plain-text help for the user filling out this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -3158,11 +3158,11 @@ "type": "object", "properties": { "name": { - "description": "Intended for programmatic or logical use, but can be used as a display\nname fallback if title isn't present.", + "description": "Name intended for programmatic or logical use. It can also serve as the\nplain-text display name when `title` is absent.", "type": "string" }, "title": { - "description": "Intended for UI and end-user contexts and optimized to be human-readable\nand easily understood.\n\nIf not provided, the name SHOULD be used for display.\n\nOmitted and `null` are equivalent and mean the `name` is used for display.", + "description": "Optional human-readable title chosen to make the implementation easy to\nrecognize in the user interface. The title is plain text.\n\nOmission and `null` are equivalent. When displaying an implementation without a title,\nthe receiver SHOULD use `name`.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -3820,7 +3820,7 @@ ] }, "name": { - "description": "Human-readable name of the authentication method.", + "description": "Human-readable name of the authentication method, shown to users as plain text.", "type": "string" } }, @@ -3891,7 +3891,7 @@ ] }, "name": { - "description": "Human-readable name of the authentication method.", + "description": "Human-readable name of the authentication method, shown to users as plain text.", "type": "string" }, "description": { @@ -3937,7 +3937,7 @@ ] }, "name": { - "description": "Human-readable name of the authentication method.", + "description": "Human-readable name of the authentication method, shown to users as plain text.", "type": "string" }, "description": { @@ -4217,11 +4217,11 @@ "type": "object", "properties": { "label": { - "description": "Human-readable name for the account, suitable for display on its own,\nfor example `Claude Max`, `OpenAI API key`, or `Vertex AI`.", + "description": "Human-readable name for the account, suitable for display on its own as plain text,\nfor example `Claude Max`, `OpenAI API key`, or `Vertex AI`.", "type": "string" }, "description": { - "description": "Short text shown with the label, such as the credential source, for example\n`API key helper`. MUST NOT contain credentials.\n\nOptional. Omitted and `null` are equivalent and mean no description is reported.", + "description": "Short plain-text description shown with the label, such as the credential source\n`API key helper`. Agents MUST NOT put credentials in this field.\n\nOptional. Omitted and `null` are equivalent and mean no description is reported.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -4322,7 +4322,7 @@ ] }, "name": { - "description": "Human-readable label for the option.", + "description": "Human-readable label the Client can display for the option, in plain text.", "type": "string" }, "description": { @@ -4501,7 +4501,7 @@ ] }, "name": { - "description": "Human-readable label for this option value.", + "description": "Human-readable label the Client can display for this option value, in plain text.", "type": "string" }, "description": { @@ -4531,7 +4531,7 @@ ] }, "name": { - "description": "Human-readable label for this group.", + "description": "Human-readable label the Client can display as a plain-text group header.", "type": "string" }, "options": { @@ -4636,7 +4636,7 @@ "type": "string" }, "name": { - "description": "Command name. MUST NOT contain whitespace and MUST be unique within the command list.", + "description": "Plain-text command name. MUST NOT contain whitespace and MUST be unique within the command list.", "type": "string" }, "description": { @@ -4726,7 +4726,7 @@ "type": "object", "properties": { "hint": { - "description": "A hint to display when the input hasn't been provided yet", + "description": "Plain-text hint about the input the command expects. The Client can display it\nwhen the user hasn't provided input yet.", "type": "string" }, "_meta": { @@ -4743,7 +4743,7 @@ "type": "object", "properties": { "name": { - "description": "Command name without the leading `/` (e.g., `create_plan`, `research_codebase`).\n\nMUST NOT contain whitespace and MUST be unique within the command list.", + "description": "Plain-text command name without the leading `/`, such as `create_plan` or `research_codebase`.\n\nMUST NOT contain whitespace and MUST be unique within the command list.", "type": "string" }, "description": { @@ -4776,7 +4776,7 @@ "type": "object", "properties": { "name": { - "description": "Skill name. The Client uses it to refer to the skill in a `skill` content block.\n\nMUST NOT contain whitespace and MUST be unique within the command list,\nacross commands and skills. It need not match the `name` in the skill's\nfrontmatter.", + "description": "Plain-text skill name. The Client uses it to refer to the skill in a `skill` content block.\n\nMUST NOT contain whitespace and MUST be unique within the command list,\nacross commands and skills. It need not match the `name` in the skill's\nfrontmatter.", "type": "string" }, "description": { @@ -4868,7 +4868,7 @@ "x-deserialize-default-on-null": true }, "title": { - "description": "Human-readable title for the session\n\nOmitted and `null` are equivalent and mean no title is provided.", + "description": "Human-readable title for the session, in plain text.\n\nOmitted and `null` are equivalent and mean no title is provided.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -5370,7 +5370,7 @@ ] }, "message": { - "description": "A string providing a short description of the error.\nThe message SHOULD be limited to a concise single sentence.", + "description": "A short, human-readable description of the error, in plain text.\nThe sender SHOULD limit the message to a single concise sentence.", "type": "string" }, "data": { @@ -5894,7 +5894,7 @@ "type": "object", "properties": { "title": { - "description": "The title the Agent stored.\n\nThis differs from the requested title if the Agent normalized it. Clients SHOULD\ndisplay this value rather than the one they sent.", + "description": "The plain-text title the Agent stored.\n\nThis differs from the requested title if the Agent normalized it. Clients SHOULD\ndisplay this value rather than the one they sent.", "type": "string" }, "_meta": { @@ -7784,7 +7784,7 @@ "type": "object", "properties": { "title": { - "description": "Human-readable title for the session. Set to null to clear.", + "description": "Human-readable title for the session, in plain text. Set to `null` to clear.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -7985,7 +7985,7 @@ "x-deserialize-skip-invalid-items": true }, "error": { - "description": "Human-readable error details for the compaction.", + "description": "Human-readable details of a compaction error, in plain text.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -8499,7 +8499,7 @@ ] }, "title": { - "description": "The parent's human-readable display title for this child. It need not be unique.\n\nOptional and nullable. Omitted means unchanged. `null` clears it. If no\ntitle is set, the Client chooses a fallback presentation.", + "description": "The parent's human-readable display title for this child, in plain text. It need not be unique.\n\nOptional and nullable. Omitted means unchanged. `null` clears it. If no\ntitle is set, the Client chooses a fallback presentation.", "type": ["string", "null"], "x-deserialize-default-on-error": true }, @@ -10165,7 +10165,7 @@ ] }, "title": { - "description": "The new title for the session.\n\nRequired and non-null. Omission and explicit `null` are both invalid. The Agent MAY\nnormalize the title before storing it, for example by trimming whitespace or\ntruncating it. The Agent rejects a title that fails its validation, including one\nthat is empty after normalization, with `-32602`.", + "description": "The new plain-text title for the session.\n\nRequired and non-null. Omission and explicit `null` are both invalid. The Agent MAY\nnormalize the title before storing it, for example by trimming whitespace or\ntruncating it. The Agent rejects a title that fails its validation, including one\nthat is empty after normalization, with `-32602`.", "type": "string" }, "_meta": {