Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools Inheritance: CloudNimble.ClaudeEssentials.Hooks.Inputs.PreToolUseHookInput<CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.TaskToolInput>Syntax
Summary
Represents the complete payload delivered to a PreToolUse hook when the Task tool is about to be invoked.Remarks
This payload contains all context provided to your hook before Claude executes the Task tool, including session information, the tool input parameters, and permission context. Use this type for strongly-typed deserialization of PreToolUse hook payloads whentool_name is “Task”.
The Task tool launches subagents to handle complex tasks. Your hook can inspect the task
description, agent type, and model before the subagent is spawned.
<strong>Terminology:</strong>
Examples
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.PreToolUseHookInput<CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.TaskToolInput>Syntax
.ctor Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.ToolHookInputBase<CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.TaskToolInput>Syntax
.ctor Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBaseSyntax
.ctor Inherited
Inherited from
objectSyntax
Properties
CurrentWorkingDirectory Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBaseSyntax
Property Value
Type:string
HookEventName Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBaseSyntax
Property Value
Type:CloudNimble.ClaudeEssentials.Hooks.HookEventName
PermissionMode Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBaseSyntax
Property Value
Type:CloudNimble.ClaudeEssentials.Hooks.PermissionMode
SessionId Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBaseSyntax
Property Value
Type:string
ToolInput Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.ToolHookInputBase<CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.TaskToolInput>Syntax
Property Value
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.TaskToolInput?
ToolName Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.ToolHookInputBase<CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.TaskToolInput>Syntax
Property Value
Type:string
ToolUseId Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.ToolHookInputBase<CloudNimble.ClaudeEssentials.Hooks.Tools.Inputs.TaskToolInput>Syntax
Property Value
Type:string
TranscriptPath Inherited
Inherited from
CloudNimble.ClaudeEssentials.Hooks.Inputs.HookInputBaseSyntax
Property Value
Type:string
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?