Skip to content

ClaudeCodeCommandInfo

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  1246225426["server_info.ClaudeCodeCommandInfo"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 1246225426
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Information about an available slash command from Claude Code.

Source code in src/clawd_code_sdk/models/server_info.py
class ClaudeCodeCommandInfo(ClaudeCodeBaseModel):
    """Information about an available slash command from Claude Code."""

    name: str
    """Command name without the / prefix (e.g., "compact", "review")."""

    description: str
    """Full description of what the command does."""

    argument_hint: str
    """Usage hint for command arguments (may be empty string)."""

    aliases: list[str] | None = None
    """Alternate names that resolve to the command (e.g., /cost / /stats both resolve to /usage)."""

    builtin: bool | None = None
    """Whether this is a built-in command (as opposed to a skill/plugin/custom command)."""

aliases class-attribute instance-attribute

aliases: list[str] | None = None

Alternate names that resolve to the command (e.g., /cost / /stats both resolve to /usage).

argument_hint instance-attribute

argument_hint: str

Usage hint for command arguments (may be empty string).

builtin class-attribute instance-attribute

builtin: bool | None = None

Whether this is a built-in command (as opposed to a skill/plugin/custom command).

description instance-attribute

description: str

Full description of what the command does.

name instance-attribute

name: str

Command name without the / prefix (e.g., "compact", "review").

:fa-brands-github: Show source on GitHub