Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks Inheritance: System.ObjectSyntax
Summary
Provides static helper methods for serializing and deserializing Claude Code hook types. All methods use the AOT-compatible ClaudeHooksJsonContext for serialization.Usage
ClaudeHooksSerializer provides AOT-compatible static methods for JSON serialization using source-generated contexts.
Deserializing Input
Serializing Output
Using Custom Types
For strongly-typed tool inputs, create your ownJsonSerializerContext:
Remarks
This class offers three levels of API for deserialization:Properties
DefaultOptions
Gets the default JsonSerializerOptions configured for Claude Code hooks. This instance is configured with the ClaudeHooksJsonContext for AOT compatibility.Syntax
Property Value
Type:System.Text.Json.JsonSerializerOptions
Methods
DeserializeAgentPostToolUse
Deserializes a JSON string to an AgentPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.AgentPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeAgentPreToolUse
Deserializes a JSON string to an AgentPreToolUsePayload with strongly-typed AgentToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.AgentPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeAskUserQuestionPostToolUse
Deserializes a JSON string to an AskUserQuestionPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.AskUserQuestionPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeAskUserQuestionPreToolUse
Deserializes a JSON string to an AskUserQuestionPreToolUsePayload with strongly-typed AskUserQuestionToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.AskUserQuestionPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeBashPostToolUse
Deserializes a JSON string to a BashPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.BashPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
Examples
DeserializeBashPreToolUse
Deserializes a JSON string to a BashPreToolUsePayload with strongly-typed BashToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.BashPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
Examples
DeserializeConfigPostToolUse
Deserializes a JSON string to a ConfigPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ConfigPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeConfigPreToolUse
Deserializes a JSON string to a ConfigPreToolUsePayload with strongly-typed ConfigToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ConfigPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeEditPostToolUse
Deserializes a JSON string to an EditPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.EditPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeEditPreToolUse
Deserializes a JSON string to an EditPreToolUsePayload with strongly-typed EditToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.EditPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeEnterWorktreePostToolUse
Deserializes a JSON string to an EnterWorktreePostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.EnterWorktreePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeEnterWorktreePreToolUse
Deserializes a JSON string to an EnterWorktreePreToolUsePayload with strongly-typed EnterWorktreeToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.EnterWorktreePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeExitPlanModePostToolUse
Deserializes a JSON string to an ExitPlanModePostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ExitPlanModePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeExitPlanModePreToolUse
Deserializes a JSON string to an ExitPlanModePreToolUsePayload with strongly-typed ExitPlanModeToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ExitPlanModePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeExitWorktreePostToolUse
Deserializes a JSON string to an ExitWorktreePostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ExitWorktreePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeExitWorktreePreToolUse
Deserializes a JSON string to an ExitWorktreePreToolUsePayload with strongly-typed ExitWorktreeToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ExitWorktreePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeGlobPostToolUse
Deserializes a JSON string to a GlobPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.GlobPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeGlobPreToolUse
Deserializes a JSON string to a GlobPreToolUsePayload with strongly-typed GlobToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.GlobPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeGrepPostToolUse
Deserializes a JSON string to a GrepPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.GrepPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeGrepPreToolUse
Deserializes a JSON string to a GrepPreToolUsePayload with strongly-typed GrepToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.GrepPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeKillShellPostToolUse
Deserializes a JSON string to a KillShellPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.KillShellPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeKillShellPreToolUse
Deserializes a JSON string to a KillShellPreToolUsePayload with strongly-typed KillShellToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.KillShellPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeListMcpResourcesPostToolUse
Deserializes a JSON string to a ListMcpResourcesPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ListMcpResourcesPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeListMcpResourcesPreToolUse
Deserializes a JSON string to a ListMcpResourcesPreToolUsePayload with strongly-typed ListMcpResourcesToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ListMcpResourcesPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeMcpPostToolUse
Deserializes a JSON string to a McpPostToolUsePayload with strongly-typed input and dynamic response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.McpPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeMcpPreToolUse
Deserializes a JSON string to a McpPreToolUsePayload with strongly-typed McpToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.McpPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeNotebookEditPostToolUse
Deserializes a JSON string to a NotebookEditPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.NotebookEditPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeNotebookEditPreToolUse
Deserializes a JSON string to a NotebookEditPreToolUsePayload with strongly-typed NotebookEditToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.NotebookEditPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeNotificationInput
Deserializes a JSON string to a NotificationHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.NotificationHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializePermissionRequestInput
Deserializes a JSON string to aPermissionRequestHookInput1` with dynamic tool input.
Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PermissionRequestHookInput<object>?
The deserialized hook input, or null if deserialization fails.
DeserializePostToolUseInput
Deserializes a JSON string to aPostToolUseHookInput2` with dynamic types.
Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PostToolUseHookInput<object, object>?
The deserialized hook input, or null if deserialization fails.
DeserializePostToolUseInput
Deserializes a JSON string to a strongly-typed PostToolUse payload using the specified type info.Syntax
Parameters
Returns
Type:T?
The deserialized payload, or null if deserialization fails.
Type Parameters
T- The payload type (e.g., BashPostToolUsePayload).
Examples
DeserializePreCompactInput
Deserializes a JSON string to a PreCompactHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PreCompactHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializePreToolUseInput
Deserializes a JSON string to aPreToolUseHookInput1` with dynamic tool input.
Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PreToolUseHookInput<object>?
The deserialized hook input, or null if deserialization fails.
DeserializePreToolUseInput
Deserializes a JSON string to a strongly-typed PreToolUse payload using the specified type info.Syntax
Parameters
Returns
Type:T?
The deserialized payload, or null if deserialization fails.
Type Parameters
T- The payload type (e.g., BashPreToolUsePayload).
Examples
DeserializeReadMcpResourcePostToolUse
Deserializes a JSON string to a ReadMcpResourcePostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadMcpResourcePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReadMcpResourcePreToolUse
Deserializes a JSON string to a ReadMcpResourcePreToolUsePayload with strongly-typed ReadMcpResourceToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadMcpResourcePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReadPostToolUse
Deserializes a JSON string to a ReadPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReadPreToolUse
Deserializes a JSON string to a ReadPreToolUsePayload with strongly-typed ReadToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeSessionEndInput
Deserializes a JSON string to a SessionEndHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.SessionEndHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeSessionStartInput
Deserializes a JSON string to a SessionStartHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.SessionStartHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeStopInput
Deserializes a JSON string to a StopHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.StopHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeSubagentStopInput
Deserializes a JSON string to a SubagentStopHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.SubagentStopHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeTaskOutputPostToolUse
Deserializes a JSON string to a TaskOutputPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskOutputPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskOutputPreToolUse
Deserializes a JSON string to a TaskOutputPreToolUsePayload with strongly-typed TaskOutputToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskOutputPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskPostToolUse
Deserializes a JSON string to a TaskPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskPreToolUse
Deserializes a JSON string to a TaskPreToolUsePayload with strongly-typed TaskToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskStopPostToolUse
Deserializes a JSON string to a TaskStopPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskStopPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskStopPreToolUse
Deserializes a JSON string to a TaskStopPreToolUsePayload with strongly-typed TaskStopToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskStopPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTodoWritePostToolUse
Deserializes a JSON string to a TodoWritePostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TodoWritePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTodoWritePreToolUse
Deserializes a JSON string to a TodoWritePreToolUsePayload with strongly-typed TodoWriteToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TodoWritePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeUserPromptSubmitInput
Deserializes a JSON string to a UserPromptSubmitHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.UserPromptSubmitHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeWebFetchPostToolUse
Deserializes a JSON string to a WebFetchPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WebFetchPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeWebFetchPreToolUse
Deserializes a JSON string to a WebFetchPreToolUsePayload with strongly-typed WebFetchToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WebFetchPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeWebSearchPostToolUse
Deserializes a JSON string to a WebSearchPostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WebSearchPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeWebSearchPreToolUse
Deserializes a JSON string to a WebSearchPreToolUsePayload with strongly-typed WebSearchToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WebSearchPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeWritePostToolUse
Deserializes a JSON string to a WritePostToolUsePayload with strongly-typed input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WritePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeWritePreToolUse
Deserializes a JSON string to a WritePreToolUsePayload with strongly-typed WriteToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WritePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
SerializeAgentPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed AgentToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeAskUserQuestionPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed AskUserQuestionToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeBashPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed BashToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
Examples
SerializeConfigPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ConfigToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeEditPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed EditToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeEnterWorktreePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed EnterWorktreeToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeExitPlanModePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ExitPlanModeToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeExitWorktreePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ExitWorktreeToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeGlobPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed GlobToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeGrepPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed GrepToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeKillShellPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed KillShellToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeListMcpResourcesPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ListMcpResourcesToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeMcpPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed McpToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeNotebookEditPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed NotebookEditToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeNotificationOutput
Serializes a NotificationHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePermissionRequestOutput
Serializes aPermissionRequestHookOutput1` with dynamic tool input to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePostToolUseOutput
Serializes a PostToolUseHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePreCompactOutput
Serializes a PreCompactHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePreToolUseOutput
Serializes aPreToolUseHookOutput1` with dynamic tool input to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePreToolUseOutput
Serializes a strongly-typed PreToolUse hook output to JSON using the specified type info.Syntax
Parameters
Returns
Type:string
The JSON string representation.
Type Parameters
T- The output type.
SerializeReadMcpResourcePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ReadMcpResourceToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeReadPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ReadToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeSessionEndOutput
Serializes a SessionEndHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeSessionStartOutput
Serializes a SessionStartHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeStopOutput
Serializes a StopHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeSubagentStopOutput
Serializes a SubagentStopHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTaskOutputPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TaskOutputToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTaskPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TaskToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTaskStopPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TaskStopToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTodoWritePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TodoWriteToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeUserPromptSubmitOutput
Serializes a UserPromptSubmitHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeWebFetchPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed WebFetchToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeWebSearchPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed WebSearchToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeWritePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed WriteToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.