Skip to content

PreSkillShellCommandHookInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  527024610["hooks.PreSkillShellCommandHookInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 527024610
  2751680898 --> 2645524081

🛈 DocStrings

Bases: BaseHookInput

Input data for PreSkillShellCommand hook events.

Fires for each inline shell command of a skill or slash command as it loads.

Source code in src/clawd_code_sdk/models/hooks.py
class PreSkillShellCommandHookInput(BaseHookInput):
    """Input data for PreSkillShellCommand hook events.

    Fires for each inline shell command of a skill or slash command as it loads.
    """

    hook_event_name: Literal["PreSkillShellCommand"]
    tool_name: str
    """The shell tool that runs the command: Bash or PowerShell."""
    tool_input: PreSkillShellCommandToolInput
    tool_use_id: str
    """Identifies this command. It names no tool call in the transcript."""
    command_name: str
    """The skill or command whose text holds the shell command."""
    command_source: NotRequired[str]
    invoked_by: Literal["user", "claude", "other"]
    """Who started the load (user: typed or sent by an SDK host, claude: the Skill tool)."""

command_name instance-attribute

command_name: str

The skill or command whose text holds the shell command.

invoked_by instance-attribute

invoked_by: Literal['user', 'claude', 'other']

Who started the load (user: typed or sent by an SDK host, claude: the Skill tool).

tool_name instance-attribute

tool_name: str

The shell tool that runs the command: Bash or PowerShell.

tool_use_id instance-attribute

tool_use_id: str

Identifies this command. It names no tool call in the transcript.

:fa-brands-github: Show source on GitHub