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-compatibleClaudeHooksJsonContext 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 theClaudeHooksJsonContext 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.
DeserializeArtifactPostToolUse
Deserializes a JSON string to an ArtifactPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ArtifactPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeArtifactPreToolUse
Deserializes a JSON string to an ArtifactPreToolUsePayload with strongly-typed ArtifactToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ArtifactPreToolUsePayload?
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
DeserializeClaudeDesignPostToolUse
Deserializes a JSON string to a ClaudeDesignPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ClaudeDesignPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeClaudeDesignPreToolUse
Deserializes a JSON string to a ClaudeDesignPreToolUsePayload with strongly-typed ClaudeDesignToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ClaudeDesignPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeConfigChangeInput
Deserializes a JSON string to a ConfigChangeHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.ConfigChangeHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeCronCreatePostToolUse
Deserializes a JSON string to a CronCreatePostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.CronCreatePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeCronCreatePreToolUse
Deserializes a JSON string to a CronCreatePreToolUsePayload with strongly-typed CronCreateToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.CronCreatePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeCronDeletePostToolUse
Deserializes a JSON string to a CronDeletePostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.CronDeletePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeCronDeletePreToolUse
Deserializes a JSON string to a CronDeletePreToolUsePayload with strongly-typed CronDeleteToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.CronDeletePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeCronListPostToolUse
Deserializes a JSON string to a CronListPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.CronListPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeCronListPreToolUse
Deserializes a JSON string to a CronListPreToolUsePayload with strongly-typed CronListToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.CronListPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeCwdChangedInput
Deserializes a JSON string to a CwdChangedHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.CwdChangedHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeDirectoryAddedInput
Deserializes a JSON string to a DirectoryAddedHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.DirectoryAddedHookInput?
The deserialized hook input, 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.
DeserializeElicitationInput
Deserializes a JSON string to an ElicitationHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.ElicitationHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeElicitationResultInput
Deserializes a JSON string to an ElicitationResultHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.ElicitationResultHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeEnterPlanModePostToolUse
Deserializes a JSON string to an EnterPlanModePostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.EnterPlanModePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeEnterPlanModePreToolUse
Deserializes a JSON string to an EnterPlanModePreToolUsePayload with strongly-typed EnterPlanModeToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.EnterPlanModePreToolUsePayload?
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.
DeserializeFileChangedInput
Deserializes a JSON string to a FileChangedHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.FileChangedHookInput?
The deserialized hook input, 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.
DeserializeInstructionsLoadedInput
Deserializes a JSON string to an InstructionsLoadedHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.InstructionsLoadedHookInput?
The deserialized hook input, 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.
DeserializeMessageDisplayInput
Deserializes a JSON string to a MessageDisplayHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.MessageDisplayHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeMonitorPostToolUse
Deserializes a JSON string to a MonitorPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.MonitorPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeMonitorPreToolUse
Deserializes a JSON string to a MonitorPreToolUsePayload with strongly-typed MonitorToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.MonitorPreToolUsePayload?
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.
DeserializeOfferChromeSetupPostToolUse
Deserializes a JSON string to an OfferChromeSetupPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.OfferChromeSetupPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeOfferChromeSetupPreToolUse
Deserializes a JSON string to an OfferChromeSetupPreToolUsePayload with strongly-typed OfferChromeSetupToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.OfferChromeSetupPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializePermissionDeniedInput
Deserializes a JSON string to a PermissionDeniedHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PermissionDeniedHookInput?
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.
DeserializePostCompactInput
Deserializes a JSON string to a PostCompactHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PostCompactHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializePostModelSwitchInput
Deserializes a JSON string to a PostModelSwitchHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PostModelSwitchHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializePostToolBatchInput
Deserializes a JSON string to a PostToolBatchHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PostToolBatchHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializePostToolUseFailureInput
Deserializes a JSON string to a PostToolUseFailureHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PostToolUseFailureHookInput?
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.
DeserializePreModelSwitchInput
Deserializes a JSON string to a PreModelSwitchHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.PreModelSwitchHookInput?
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
DeserializeProjectsPostToolUse
Deserializes a JSON string to a ProjectsPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ProjectsPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeProjectsPreToolUse
Deserializes a JSON string to a ProjectsPreToolUsePayload with strongly-typed ProjectsToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ProjectsPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeProposeGoalPostToolUse
Deserializes a JSON string to a ProposeGoalPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ProposeGoalPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeProposeGoalPreToolUse
Deserializes a JSON string to a ProposeGoalPreToolUsePayload with strongly-typed ProposeGoalToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ProposeGoalPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeProposeSkillsPostToolUse
Deserializes a JSON string to a ProposeSkillsPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ProposeSkillsPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeProposeSkillsPreToolUse
Deserializes a JSON string to a ProposeSkillsPreToolUsePayload with strongly-typed ProposeSkillsToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ProposeSkillsPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializePushNotificationPostToolUse
Deserializes a JSON string to a PushNotificationPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.PushNotificationPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializePushNotificationPreToolUse
Deserializes a JSON string to a PushNotificationPreToolUsePayload with strongly-typed PushNotificationToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.PushNotificationPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReadMcpResourceDirPostToolUse
Deserializes a JSON string to a ReadMcpResourceDirPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadMcpResourceDirPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReadMcpResourceDirPreToolUse
Deserializes a JSON string to a ReadMcpResourceDirPreToolUsePayload with strongly-typed ReadMcpResourceDirToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadMcpResourceDirPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
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.
DeserializeReadNotificationsPostToolUse
Deserializes a JSON string to a ReadNotificationsPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadNotificationsPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReadNotificationsPreToolUse
Deserializes a JSON string to a ReadNotificationsPreToolUsePayload with strongly-typed ReadNotificationsToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReadNotificationsPreToolUsePayload?
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.
DeserializeRefreshMcpToolsPostToolUse
Deserializes a JSON string to a RefreshMcpToolsPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.RefreshMcpToolsPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeRefreshMcpToolsPreToolUse
Deserializes a JSON string to a RefreshMcpToolsPreToolUsePayload with strongly-typed RefreshMcpToolsToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.RefreshMcpToolsPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeRemoteTriggerPostToolUse
Deserializes a JSON string to a RemoteTriggerPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.RemoteTriggerPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeRemoteTriggerPreToolUse
Deserializes a JSON string to a RemoteTriggerPreToolUsePayload with strongly-typed RemoteTriggerToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.RemoteTriggerPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReportFindingsPostToolUse
Deserializes a JSON string to a ReportFindingsPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReportFindingsPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeReportFindingsPreToolUse
Deserializes a JSON string to a ReportFindingsPreToolUsePayload with strongly-typed ReportFindingsToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ReportFindingsPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeScheduleWakeupPostToolUse
Deserializes a JSON string to a ScheduleWakeupPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ScheduleWakeupPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeScheduleWakeupPreToolUse
Deserializes a JSON string to a ScheduleWakeupPreToolUsePayload with strongly-typed ScheduleWakeupToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ScheduleWakeupPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeSendFeedbackPostToolUse
Deserializes a JSON string to a SendFeedbackPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.SendFeedbackPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeSendFeedbackPreToolUse
Deserializes a JSON string to a SendFeedbackPreToolUsePayload with strongly-typed SendFeedbackToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.SendFeedbackPreToolUsePayload?
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.
DeserializeSetupInput
Deserializes a JSON string to a SetupHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.SetupHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeShowOnboardingRolePickerPostToolUse
Deserializes a JSON string to a ShowOnboardingRolePickerPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ShowOnboardingRolePickerPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeShowOnboardingRolePickerPreToolUse
Deserializes a JSON string to a ShowOnboardingRolePickerPreToolUsePayload with strongly-typed ShowOnboardingRolePickerToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.ShowOnboardingRolePickerPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeStopFailureInput
Deserializes a JSON string to a StopFailureHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.StopFailureHookInput?
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.
DeserializeSubagentStartInput
Deserializes a JSON string to a SubagentStartHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.SubagentStartHookInput?
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.
DeserializeTaskCompletedInput
Deserializes a JSON string to a TaskCompletedHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.TaskCompletedHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeTaskCreatedInput
Deserializes a JSON string to a TaskCreatedHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.TaskCreatedHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeTaskCreatePostToolUse
Deserializes a JSON string to a TaskCreatePostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskCreatePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskCreatePreToolUse
Deserializes a JSON string to a TaskCreatePreToolUsePayload with strongly-typed TaskCreateToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskCreatePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskGetPostToolUse
Deserializes a JSON string to a TaskGetPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskGetPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskGetPreToolUse
Deserializes a JSON string to a TaskGetPreToolUsePayload with strongly-typed TaskGetToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskGetPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskListPostToolUse
Deserializes a JSON string to a TaskListPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskListPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskListPreToolUse
Deserializes a JSON string to a TaskListPreToolUsePayload with strongly-typed TaskListToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskListPreToolUsePayload?
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.
DeserializeTaskUpdatePostToolUse
Deserializes a JSON string to a TaskUpdatePostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskUpdatePostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTaskUpdatePreToolUse
Deserializes a JSON string to a TaskUpdatePreToolUsePayload with strongly-typed TaskUpdateToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.TaskUpdatePreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeTeammateIdleInput
Deserializes a JSON string to a TeammateIdleHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.TeammateIdleHookInput?
The deserialized hook input, 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.
DeserializeUserPromptExpansionInput
Deserializes a JSON string to an UserPromptExpansionHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.UserPromptExpansionHookInput?
The deserialized hook input, 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.
DeserializeWorkflowPostToolUse
Deserializes a JSON string to a WorkflowPostToolUsePayload with a strongly-typed tool input and response.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WorkflowPostToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeWorkflowPreToolUse
Deserializes a JSON string to a WorkflowPreToolUsePayload with strongly-typed WorkflowToolInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Tools.WorkflowPreToolUsePayload?
The deserialized payload, or null if deserialization fails.
DeserializeWorktreeCreateInput
Deserializes a JSON string to a WorktreeCreateHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.WorktreeCreateHookInput?
The deserialized hook input, or null if deserialization fails.
DeserializeWorktreeRemoveInput
Deserializes a JSON string to a WorktreeRemoveHookInput.Syntax
Parameters
Returns
Type:CloudNimble.ClaudeEssentials.Hooks.Inputs.WorktreeRemoveHookInput?
The deserialized hook input, 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.
SerializeArtifactPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ArtifactToolInput 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.
SerializeAsyncOutput
Serializes an AsyncHookOutput 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
SerializeClaudeDesignPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ClaudeDesignToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeConfigChangeOutput
Serializes a ConfigChangeHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeCronCreatePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed CronCreateToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeCronDeletePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed CronDeleteToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeCronListPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed CronListToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeCwdChangedOutput
Serializes a CwdChangedHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeDirectoryAddedOutput
Serializes a DirectoryAddedHookOutput 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.
SerializeElicitationOutput
Serializes an ElicitationHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeElicitationResultOutput
Serializes an ElicitationResultHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeEnterPlanModePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed EnterPlanModeToolInput 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.
SerializeFileChangedOutput
Serializes a FileChangedHookOutput 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.
SerializeInstructionsLoadedOutput
Serializes an InstructionsLoadedHookOutput 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.
SerializeMessageDisplayOutput
Serializes a MessageDisplayHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeMonitorPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed MonitorToolInput 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.
SerializeOfferChromeSetupPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed OfferChromeSetupToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePermissionDeniedOutput
Serializes a PermissionDeniedHookOutput 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.
SerializePostCompactOutput
Serializes a PostCompactHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePostModelSwitchOutput
Serializes a PostModelSwitchHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePostToolBatchOutput
Serializes a PostToolBatchHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePostToolUseFailureOutput
Serializes a PostToolUseFailureHookOutput 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.
SerializePreModelSwitchOutput
Serializes a PreModelSwitchHookOutput 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.
SerializeProjectsPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ProjectsToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeProposeGoalPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ProposeGoalToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeProposeSkillsPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ProposeSkillsToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializePushNotificationPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed PushNotificationToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeReadMcpResourceDirPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ReadMcpResourceDirToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeReadMcpResourcePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ReadMcpResourceToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeReadNotificationsPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ReadNotificationsToolInput 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.
SerializeRefreshMcpToolsPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed RefreshMcpToolsToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeRemoteTriggerPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed RemoteTriggerToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeReportFindingsPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ReportFindingsToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeScheduleWakeupPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ScheduleWakeupToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeSendFeedbackPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed SendFeedbackToolInput 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.
SerializeSetupOutput
Serializes a SetupHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeShowOnboardingRolePickerPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed ShowOnboardingRolePickerToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeStopFailureOutput
Serializes a StopFailureHookOutput 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.
SerializeSubagentStartOutput
Serializes a SubagentStartHookOutput 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.
SerializeTaskCompletedOutput
Serializes a TaskCompletedHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTaskCreatedOutput
Serializes a TaskCreatedHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTaskCreatePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TaskCreateToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTaskGetPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TaskGetToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTaskListPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TaskListToolInput 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.
SerializeTaskUpdatePreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed TaskUpdateToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeTeammateIdleOutput
Serializes a TeammateIdleHookOutput 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.
SerializeUserPromptExpansionOutput
Serializes an UserPromptExpansionHookOutput 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.
SerializeWorkflowPreToolUseOutput
Serializes aPreToolUseHookOutput1` with strongly-typed WorkflowToolInput to JSON.
Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeWorktreeCreateOutput
Serializes a WorktreeCreateHookOutput to JSON.Syntax
Parameters
Returns
Type:string
The JSON string representation.
SerializeWorktreeRemoveOutput
Serializes a WorktreeRemoveHookOutput 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.