output_types
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| AgentAsyncLaunchedOutput clawd_code_sdk.models.output_types Output from the Task tool when an agent was launched asynchronously. |
||
| AgentCacheCreation clawd_code_sdk.models.output_types Cache creation token statistics. |
||
| AgentCompletedOutput clawd_code_sdk.models.output_types Output from the Task tool when the agent completed successfully. |
||
| AgentOutputTextContent clawd_code_sdk.models.output_types A text content block in agent output. |
||
| AgentOutputTokensDetails clawd_code_sdk.models.output_types Breakdown of output tokens of an agent task. |
||
| AgentOutputUsage clawd_code_sdk.models.output_types Token usage statistics from an agent task. |
||
| AgentRemoteLaunchedOutput clawd_code_sdk.models.output_types Output from the Agent tool when an agent was launched in a remote (cloud) session. |
||
| ArtifactArtifactsArtifact clawd_code_sdk.models.output_types ``artifact`` entry of ArtifactArtifacts. |
||
| ArtifactArtifactsOutput clawd_code_sdk.models.output_types Artifact tool output (Artifacts variant). |
||
| ArtifactAssetDeleteAssetDelete clawd_code_sdk.models.output_types ``asset_delete`` entry of ArtifactAssetDelete. |
||
| ArtifactAssetDeleteOutput clawd_code_sdk.models.output_types Artifact tool output (AssetDelete variant). |
||
| ArtifactAssetDeleteWritten clawd_code_sdk.models.output_types ``written`` entry of ArtifactAssetDelete. |
||
| ArtifactAssetListAssetList clawd_code_sdk.models.output_types ``asset_list`` entry of ArtifactAssetList. |
||
| ArtifactAssetListAssetListAsset clawd_code_sdk.models.output_types ``asset`` entry of ArtifactAssetListAssetList. |
||
| ArtifactAssetListAssetListUsage clawd_code_sdk.models.output_types ``usage`` entry of ArtifactAssetListAssetList. |
||
| ArtifactAssetListOutput clawd_code_sdk.models.output_types Artifact tool output (AssetList variant). |
||
| ArtifactAssetReadAssetRead clawd_code_sdk.models.output_types ``asset_read`` entry of ArtifactAssetRead. |
||
| ArtifactAssetReadOutput clawd_code_sdk.models.output_types Artifact tool output (AssetRead variant). |
||
| ArtifactAssetUploadAssetUpload clawd_code_sdk.models.output_types ``asset_upload`` entry of ArtifactAssetUpload. |
||
| ArtifactAssetUploadOutput clawd_code_sdk.models.output_types Artifact tool output (AssetUpload variant). |
||
| ArtifactAssetUploadWritten clawd_code_sdk.models.output_types ``written`` entry of ArtifactAssetUpload. |
||
| ArtifactAssetUploadsAssetUploads clawd_code_sdk.models.output_types ``asset_uploads`` entry of ArtifactAssetUploads. |
||
| ArtifactAssetUploadsAssetUploadsResultId clawd_code_sdk.models.output_types ``result`` variant of ArtifactAssetUploadsAssetUploads (Id). |
||
| ArtifactAssetUploadsAssetUploadsResultReason clawd_code_sdk.models.output_types ``result`` variant of ArtifactAssetUploadsAssetUploads (Reason). |
||
| ArtifactAssetUploadsOutput clawd_code_sdk.models.output_types Artifact tool output (AssetUploads variant). |
||
| ArtifactAssetUploadsWritten clawd_code_sdk.models.output_types ``written`` entry of ArtifactAssetUploads. |
||
| ArtifactPinOutput clawd_code_sdk.models.output_types Artifact tool output (Pin variant). |
||
| ArtifactPinPin clawd_code_sdk.models.output_types ``pin`` entry of ArtifactPin. |
||
| ArtifactReadArtifactRead clawd_code_sdk.models.output_types ``artifactRead`` entry of ArtifactRead. |
||
| ArtifactReadMarker clawd_code_sdk.models.output_types Marks a read/fetched artifact as viewed. |
||
| ArtifactReadOutput clawd_code_sdk.models.output_types Artifact tool output (Read variant). |
||
| ArtifactReadRead clawd_code_sdk.models.output_types ``read`` entry of ArtifactRead. |
||
| ArtifactUnwatchOutput clawd_code_sdk.models.output_types Artifact tool output (Unwatch variant). |
||
| ArtifactUnwatchUnwatch clawd_code_sdk.models.output_types ``unwatch`` entry of ArtifactUnwatch. |
||
| ArtifactUrlOutput clawd_code_sdk.models.output_types Artifact tool output (Url variant). |
||
| ArtifactUrlStored clawd_code_sdk.models.output_types ``stored`` entry of ArtifactUrl. |
||
| ArtifactWatchOutput clawd_code_sdk.models.output_types Artifact tool output (Watch variant). |
||
| ArtifactWatchWatch clawd_code_sdk.models.output_types ``watch`` entry of ArtifactWatch. |
||
| ArtifactWatchesArm clawd_code_sdk.models.output_types ``arm`` entry of ArtifactWatches. |
||
| ArtifactWatchesOutput clawd_code_sdk.models.output_types Artifact tool output (Watches variant). |
||
| ArtifactWatchesWatchStopKind clawd_code_sdk.models.output_types ``watch`` variant of ArtifactWatches (StopKind). |
||
| ArtifactWatchesWatchTaskId clawd_code_sdk.models.output_types ``watch`` variant of ArtifactWatches (TaskId). |
||
| ArtifactWatchesWatchTriggerId clawd_code_sdk.models.output_types ``watch`` variant of ArtifactWatches (TriggerId). |
||
| AskUserQuestionAnnotation clawd_code_sdk.models.output_types Per-question annotation attached to an AskUserQuestion answer. |
||
| AskUserQuestionItem clawd_code_sdk.models.output_types A single question that was asked. |
||
| AskUserQuestionOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the AskUserQuestion tool. |
||
| BashGitBranchOperation clawd_code_sdk.models.output_types A branch merge/rebase detected in a Bash command. |
||
| BashGitCommit clawd_code_sdk.models.output_types A git commit detected in a Bash command. |
||
| BashGitOperation clawd_code_sdk.models.output_types Git/gh operations detected in a Bash command. |
||
| BashGitPullRequest clawd_code_sdk.models.output_types A gh PR operation detected in a Bash command. |
||
| BashGitPush clawd_code_sdk.models.output_types A git push detected in a Bash command. |
||
| BashOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Bash tool. |
||
| BashOutputOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the BashOutput tool (background shell output retrieval). |
||
| ClaudeDesignOutput clawd_code_sdk.models.output_types Output of the ClaudeDesign tool. |
||
| ConfigOutput clawd_code_sdk.models.output_types Output from the Config tool. |
||
| CronCreateOneShot clawd_code_sdk.models.output_types ``otherOneShots`` entry of CronCreate. |
||
| CronCreateOutput clawd_code_sdk.models.output_types Output of the CronCreate tool. |
||
| CronDeleteOutput clawd_code_sdk.models.output_types Output of the CronDelete tool. |
||
| CronListJob clawd_code_sdk.models.output_types ``job`` entry of CronList. |
||
| CronListOutput clawd_code_sdk.models.output_types Output of the CronList tool. |
||
| EditOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Edit tool. |
||
| EnterPlanModeOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the EnterPlanMode tool. |
||
| EnterWorktreeOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the EnterWorktree tool. |
||
| ExitPlanModeOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the ExitPlanMode tool. |
||
| ExitWorktreeOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the ExitWorktree tool. |
||
| FileUnchangedOutput clawd_code_sdk.models.output_types Read tool output when the file has not changed. |
||
| GitDiff clawd_code_sdk.models.output_types Git diff information for a file change. |
||
| GlobOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Glob tool. |
||
| GrepOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Grep tool (all modes). |
||
| KillShellOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the KillBash tool. |
||
| McpResourceEntry clawd_code_sdk.models.output_types A single MCP resource entry. |
||
| MonitorOutput clawd_code_sdk.models.output_types Output of the Monitor tool. |
||
| NotebookEditOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the NotebookEdit tool. |
||
| OfferChromeSetupOutput clawd_code_sdk.models.output_types Output of the OfferChromeSetup tool. |
||
| ProjectsProjectDeleteOutput clawd_code_sdk.models.output_types Projects tool output (ProjectDelete variant). |
||
| ProjectsProjectInfoDoc clawd_code_sdk.models.output_types ``doc`` entry of ProjectsProjectInfo. |
||
| ProjectsProjectInfoFile clawd_code_sdk.models.output_types ``file`` entry of ProjectsProjectInfo. |
||
| ProjectsProjectInfoKnowledge clawd_code_sdk.models.output_types ``knowledge`` entry of ProjectsProjectInfo. |
||
| ProjectsProjectInfoOutput clawd_code_sdk.models.output_types Projects tool output (ProjectInfo variant). |
||
| ProjectsProjectInfoSyncSource clawd_code_sdk.models.output_types ``sync_source`` entry of ProjectsProjectInfo. |
||
| ProjectsProjectMemoryListFile clawd_code_sdk.models.output_types ``file`` entry of ProjectsProjectMemoryList. |
||
| ProjectsProjectMemoryListOutput clawd_code_sdk.models.output_types Projects tool output (ProjectMemoryList variant). |
||
| ProjectsProjectMemoryReadOutput clawd_code_sdk.models.output_types Projects tool output (ProjectMemoryRead variant). |
||
| ProjectsProjectReadOutput clawd_code_sdk.models.output_types Projects tool output (ProjectRead variant). |
||
| ProjectsProjectSearchHit clawd_code_sdk.models.output_types ``hit`` entry of ProjectsProjectSearch. |
||
| ProjectsProjectSearchOutput clawd_code_sdk.models.output_types Projects tool output (ProjectSearch variant). |
||
| ProjectsProjectWriteOutput clawd_code_sdk.models.output_types Projects tool output (ProjectWrite variant). |
||
| ProposeGoalOutput clawd_code_sdk.models.output_types Output of the ProposeGoal tool. |
||
| ProposeSkillsOutput clawd_code_sdk.models.output_types Output of the ProposeSkills tool. |
||
| PushNotificationOutput clawd_code_sdk.models.output_types Output of the PushNotification tool. |
||
| ReadFileInfo clawd_code_sdk.models.output_types Nested file info inside a Read tool result (text mode). |
||
| ReadImageDimensions clawd_code_sdk.models.output_types Image dimension info for coordinate mapping. |
||
| ReadImageFileInfo clawd_code_sdk.models.output_types Nested file info for image reads. |
||
| ReadImageOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Read tool (image files). |
||
| ReadMcpResourceContentItem clawd_code_sdk.models.output_types A single content item from an MCP resource. |
||
| ReadMcpResourceDirOutput clawd_code_sdk.models.output_types Output of the ReadMcpResourceDir tool. |
||
| ReadMcpResourceDirResource clawd_code_sdk.models.output_types ``resource`` entry of ReadMcpResourceDir. |
||
| ReadMcpResourceOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the ReadMcpResource tool. |
||
| ReadNotebookFileInfo clawd_code_sdk.models.output_types Nested file info for notebook reads. |
||
| ReadNotebookOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Read tool (Jupyter notebooks). |
||
| ReadNotificationsNotification clawd_code_sdk.models.output_types ``notification`` entry of ReadNotifications. |
||
| ReadNotificationsOutput clawd_code_sdk.models.output_types Output of the ReadNotifications tool. |
||
| ReadPartsFileInfo clawd_code_sdk.models.output_types Nested file info for PDF parts (extracted page images). |
||
| ReadPartsOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Read tool (PDF parts extraction). |
||
| ReadPartsPage clawd_code_sdk.models.output_types A rendered page image of a document read in parts. |
||
| ReadPdfFileInfo clawd_code_sdk.models.output_types Nested file info for PDF reads. |
||
| ReadPdfOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Read tool (PDF files). |
||
| ReadTextOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Read tool (text files). |
||
| RefreshMcpTools clawd_code_sdk.models.output_types ```` entry of RefreshMcpTools. |
||
| RemoteTriggerOutput clawd_code_sdk.models.output_types Output of the RemoteTrigger tool. |
||
| ReportFindingsOutput clawd_code_sdk.models.output_types Output of the ReportFindings tool. |
||
| SDKDeferredToolUse clawd_code_sdk.models.output_types A deferred tool use from a completed agent result. |
||
| ScheduleWakeupOutput clawd_code_sdk.models.output_types Output of the ScheduleWakeup tool. |
||
| SendFeedbackOutput clawd_code_sdk.models.output_types Output of the SendFeedback tool. |
||
| ShowOnboardingRolePickerOutput clawd_code_sdk.models.output_types Output of the ShowOnboardingRolePicker tool. |
||
| SkillOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Skill tool. |
||
| StructuredPatchHunk clawd_code_sdk.models.output_types A single hunk in a structured patch. |
||
| TaskCreateOutput clawd_code_sdk.models.output_types Output of the TaskCreate tool. |
||
| TaskCreateTask clawd_code_sdk.models.output_types ``task`` entry of TaskCreate. |
||
| TaskGetOutput clawd_code_sdk.models.output_types Output of the TaskGet tool. |
||
| TaskGetTask clawd_code_sdk.models.output_types ``task`` entry of TaskGet. |
||
| TaskInfo clawd_code_sdk.models.output_types Information about a background task. |
||
| TaskListOutput clawd_code_sdk.models.output_types Output of the TaskList tool. |
||
| TaskListTask clawd_code_sdk.models.output_types ``task`` entry of TaskList. |
||
| TaskOutputResult clawd_code_sdk.models.output_types ``tool_use_result`` for the TaskOutput tool (background task polling). |
||
| TaskStopOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the TaskStop tool. |
||
| TaskUpdateOutput clawd_code_sdk.models.output_types Output of the TaskUpdate tool. |
||
| TaskUpdateStatusChange clawd_code_sdk.models.output_types |
||
| TodoWriteOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the TodoWrite tool. |
||
| ToolReference clawd_code_sdk.models.output_types A single tool reference returned by ToolSearch. |
||
| ToolSearchOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the ToolSearch tool. |
||
| ToolStats clawd_code_sdk.models.output_types Tool usage statistics from an agent task. |
||
| WebFetchOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the WebFetch tool. |
||
| WebSearchHit clawd_code_sdk.models.output_types A single search result hit. |
||
| WebSearchOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the WebSearch tool. |
||
| WebSearchToolResult clawd_code_sdk.models.output_types A structured search result entry. |
||
| WorkflowOutput clawd_code_sdk.models.output_types Output of the Workflow tool. |
||
| WriteOutput clawd_code_sdk.models.output_types ``tool_use_result`` for the Write tool. |
🛈 DocStrings¶
Tool output type definitions matching the actual tool_use_result wire format.
These TypedDicts describe the structured data that the Claude Code CLI attaches
to UserMessage.tool_use_result after each tool execution. This is the real
data available to SDK consumers — richer than the plain-text summary the model
sees in ToolResultBlock.content.
The shapes are derived from the ToolOutputSchemas type definitions in the
@anthropic-ai/claude-agent-sdk npm package (auto-generated from JSON Schema).
ListMcpResourcesOutput
module-attribute
¶
ListMcpResourcesOutput = list[McpResourceEntry]
tool_use_result for the ListMcpResources tool.
McpOutput
module-attribute
¶
Output from a generic MCP tool call (plain string).
AgentAsyncLaunchedOutput
¶
Bases: TypedDict
Output from the Task tool when an agent was launched asynchronously.
Source code in src/clawd_code_sdk/models/output_types.py
canReadOutputFile
instance-attribute
¶
Whether the calling agent has Read/Bash tools to check progress.
isAsync
instance-attribute
¶
Always True for async-launched agents.
modelsUsed
instance-attribute
¶
Ordered distinct models used before backgrounding.
outputFile
instance-attribute
¶
Path to the output file for checking agent progress.
resolvedModel
instance-attribute
¶
Model in use at the backgrounding transition.
status
instance-attribute
¶
Indicates the agent was launched in the background.
AgentCacheCreation
¶
Bases: TypedDict
Cache creation token statistics.
Source code in src/clawd_code_sdk/models/output_types.py
AgentCompletedOutput
¶
Bases: TypedDict
Output from the Task tool when the agent completed successfully.
Source code in src/clawd_code_sdk/models/output_types.py
content
instance-attribute
¶
content: list[AgentOutputTextContent]
Text content blocks produced by the agent.
modelsUsed
instance-attribute
¶
Ordered distinct models used (length > 1 means a mid-run swap).
worktreeBranch
instance-attribute
¶
Branch of the agent's worktree.
worktreePath
instance-attribute
¶
Worktree the agent ran in (isolation="worktree").
AgentOutputTextContent
¶
Bases: TypedDict
A text content block in agent output.
Source code in src/clawd_code_sdk/models/output_types.py
AgentOutputTokensDetails
¶
Bases: TypedDict
Breakdown of output tokens of an agent task.
Source code in src/clawd_code_sdk/models/output_types.py
thinking_tokens
instance-attribute
¶
Number of thinking tokens.
AgentOutputUsage
¶
Bases: TypedDict
Token usage statistics from an agent task.
Source code in src/clawd_code_sdk/models/output_types.py
cache_creation
instance-attribute
¶
cache_creation: AgentCacheCreation | None
Cache creation statistics.
cache_creation_input_tokens
instance-attribute
¶
Tokens used to create cache entries.
cache_read_input_tokens
instance-attribute
¶
Tokens read from cache.
output_tokens_details
instance-attribute
¶
output_tokens_details: NotRequired[AgentOutputTokensDetails | None]
Breakdown of output tokens.
server_tool_use
instance-attribute
¶
server_tool_use: AgentServerToolUse | None
Server-side tool usage statistics.
service_tier
instance-attribute
¶
Service tier used for the request.
AgentRemoteLaunchedOutput
¶
Bases: TypedDict
Output from the Agent tool when an agent was launched in a remote (cloud) session.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactArtifactsArtifact
¶
Bases: TypedDict
artifact entry of ArtifactArtifacts.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactArtifactsOutput
¶
Bases: TypedDict
Artifact tool output (Artifacts variant).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetDeleteAssetDelete
¶
ArtifactAssetDeleteOutput
¶
Bases: TypedDict
Artifact tool output (AssetDelete variant).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetDeleteWritten
¶
ArtifactAssetListAssetList
¶
Bases: TypedDict
asset_list entry of ArtifactAssetList.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetListAssetListAsset
¶
Bases: TypedDict
asset entry of ArtifactAssetListAssetList.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetListAssetListUsage
¶
Bases: TypedDict
usage entry of ArtifactAssetListAssetList.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetListOutput
¶
ArtifactAssetReadAssetRead
¶
Bases: TypedDict
asset_read entry of ArtifactAssetRead.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetReadOutput
¶
ArtifactAssetUploadAssetUpload
¶
Bases: TypedDict
asset_upload entry of ArtifactAssetUpload.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetUploadOutput
¶
Bases: TypedDict
Artifact tool output (AssetUpload variant).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetUploadWritten
¶
ArtifactAssetUploadsAssetUploads
¶
Bases: TypedDict
asset_uploads entry of ArtifactAssetUploads.
Source code in src/clawd_code_sdk/models/output_types.py
results
instance-attribute
¶
results: list[
ArtifactAssetUploadsAssetUploadsResultId
| ArtifactAssetUploadsAssetUploadsResultReason
| list[ArtifactAssetUploadsAssetUploadsResultId | ArtifactAssetUploadsAssetUploadsResultReason]
]
@minItems 1 @maxItems 25
ArtifactAssetUploadsAssetUploadsResultId
¶
Bases: TypedDict
result variant of ArtifactAssetUploadsAssetUploads (Id).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetUploadsAssetUploadsResultReason
¶
Bases: TypedDict
result variant of ArtifactAssetUploadsAssetUploads (Reason).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetUploadsOutput
¶
Bases: TypedDict
Artifact tool output (AssetUploads variant).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactAssetUploadsWritten
¶
ArtifactPinOutput
¶
ArtifactPinPin
¶
ArtifactReadArtifactRead
¶
ArtifactReadMarker
¶
ArtifactReadOutput
¶
Bases: TypedDict
Artifact tool output (Read variant).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactReadRead
¶
Bases: TypedDict
read entry of ArtifactRead.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactUnwatchOutput
¶
ArtifactUnwatchUnwatch
¶
ArtifactUrlOutput
¶
Bases: TypedDict
Artifact tool output (Url variant).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactUrlStored
¶
Bases: TypedDict
stored entry of ArtifactUrl.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactWatchOutput
¶
ArtifactWatchWatch
¶
Bases: TypedDict
watch entry of ArtifactWatch.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactWatchesArm
¶
Bases: TypedDict
arm entry of ArtifactWatches.
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactWatchesOutput
¶
Bases: TypedDict
Artifact tool output (Watches variant).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactWatchesWatchStopKind
¶
Bases: TypedDict
watch variant of ArtifactWatches (StopKind).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactWatchesWatchTaskId
¶
Bases: TypedDict
watch variant of ArtifactWatches (TaskId).
Source code in src/clawd_code_sdk/models/output_types.py
ArtifactWatchesWatchTriggerId
¶
Bases: TypedDict
watch variant of ArtifactWatches (TriggerId).
Source code in src/clawd_code_sdk/models/output_types.py
AskUserQuestionAnnotation
¶
Bases: TypedDict
Per-question annotation attached to an AskUserQuestion answer.
Source code in src/clawd_code_sdk/models/output_types.py
AskUserQuestionItem
¶
AskUserQuestionOutput
¶
Bases: TypedDict
tool_use_result for the AskUserQuestion tool.
Source code in src/clawd_code_sdk/models/output_types.py
afkTimeoutMs
instance-attribute
¶
Set when the question timed out because the user was away (ms).
annotations
instance-attribute
¶
annotations: NotRequired[dict[str, AskUserQuestionAnnotation]]
Per-question annotations from the user, keyed by question text.
answers
instance-attribute
¶
Maps question text to answer string. Multi-select answers are comma-separated.
BashGitBranchOperation
¶
BashGitCommit
¶
Bases: TypedDict
A git commit detected in a Bash command.
Source code in src/clawd_code_sdk/models/output_types.py
BashGitOperation
¶
Bases: TypedDict
Git/gh operations detected in a Bash command.
Source code in src/clawd_code_sdk/models/output_types.py
BashGitPullRequest
¶
Bases: TypedDict
A gh PR operation detected in a Bash command.
Source code in src/clawd_code_sdk/models/output_types.py
BashGitPush
¶
BashOutput
¶
Bases: TypedDict
tool_use_result for the Bash tool.
Source code in src/clawd_code_sdk/models/output_types.py
backgroundCwdHint
instance-attribute
¶
Note that the session cwd was not changed by a backgrounded directory-change command.
backgroundEndsWithFinalResponse
instance-attribute
¶
True when this backgrounded command is terminated at its caller's final response.
backgroundTaskId
instance-attribute
¶
Task ID when run_in_background=true was used.
backgroundWakesOwner
instance-attribute
¶
True when the subagent owning this backgrounded command is woken by its end.
backgroundedByUser
instance-attribute
¶
True if the user manually backgrounded the command with Ctrl+B.
dangerouslyDisableSandbox
instance-attribute
¶
Whether sandbox mode was overridden.
ghRateLimitHint
instance-attribute
¶
Model-facing sys-reminder appended when a gh cmd reports a GitHub API rate-limit error.
gitOperation
instance-attribute
¶
gitOperation: NotRequired[BashGitOperation]
Structured classification of git/gh operations detected in this command.
noOutputExpected
instance-attribute
¶
Whether the command is expected to produce no output on success.
persistedOutputPath
instance-attribute
¶
Path to persisted full output (when output is too large for inline).
persistedOutputSize
instance-attribute
¶
Total size of the output in bytes (when output is too large for inline).
rawOutputPath
instance-attribute
¶
Path to raw output file for large MCP tool outputs.
returnCodeInterpretation
instance-attribute
¶
Semantic interpretation for non-error exit codes with special meaning.
staleReadFileStateHint
instance-attribute
¶
Model-facing note listing readFileState entries whose mtime bumped during this command.
structuredContent
instance-attribute
¶
Structured content blocks.
timedOutAfterMs
instance-attribute
¶
Set when the command hit its timeout and was auto-backgrounded; the timeout in ms.
BashOutputOutput
¶
Bases: TypedDict
tool_use_result for the BashOutput tool (background shell output retrieval).
Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62. Shape derived from: https://github.com/kzahel/yepanywhere/blob/main/packages/shared/src/claude-sdk-schema/tool/ToolResultSchemas.ts
Source code in src/clawd_code_sdk/models/output_types.py
exitCode
instance-attribute
¶
Exit code of the command, or None if still running.
ClaudeDesignOutput
¶
ConfigOutput
¶
Bases: TypedDict
Output from the Config tool.
Source code in src/clawd_code_sdk/models/output_types.py
CronCreateOneShot
¶
CronCreateOutput
¶
Bases: TypedDict
Output of the CronCreate tool.
Source code in src/clawd_code_sdk/models/output_types.py
maxAgeMs
instance-attribute
¶
Age at which a recurring job ends; 0 = never
nextFireAt
instance-attribute
¶
Epoch ms of the job's next run, the scheduler's per-job offset included
otherOneShots
instance-attribute
¶
otherOneShots: NotRequired[list[CronCreateOneShot]]
Other session-only one-shot tasks that have yet to fire
CronDeleteOutput
¶
CronListJob
¶
Bases: TypedDict
job entry of CronList.
Source code in src/clawd_code_sdk/models/output_types.py
nextFireAt
instance-attribute
¶
Epoch ms of the job's next run, the scheduler's per-job offset included
CronListOutput
¶
EditOutput
¶
Bases: TypedDict
tool_use_result for the Edit tool.
Source code in src/clawd_code_sdk/models/output_types.py
staged
instance-attribute
¶
Whether the edit was staged instead of written.
EnterPlanModeOutput
¶
Bases: TypedDict
tool_use_result for the EnterPlanMode tool.
Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62. Shape derived from empirical testing.
Source code in src/clawd_code_sdk/models/output_types.py
EnterWorktreeOutput
¶
Bases: TypedDict
tool_use_result for the EnterWorktree tool.
Source code in src/clawd_code_sdk/models/output_types.py
ExitPlanModeOutput
¶
Bases: TypedDict
tool_use_result for the ExitPlanMode tool.
Source code in src/clawd_code_sdk/models/output_types.py
awaitingLeaderApproval
instance-attribute
¶
When true, the teammate has sent a plan approval request to the team leader.
hasTaskTool
instance-attribute
¶
Whether the Task tool is available in the current context.
planWasEdited
instance-attribute
¶
Whether the plan was edited by the user.
requestId
instance-attribute
¶
Unique identifier for the plan approval request.
ExitWorktreeOutput
¶
Bases: TypedDict
tool_use_result for the ExitWorktree tool.
Source code in src/clawd_code_sdk/models/output_types.py
FileUnchangedOutput
¶
GitDiff
¶
Bases: TypedDict
Git diff information for a file change.
Source code in src/clawd_code_sdk/models/output_types.py
GlobOutput
¶
Bases: TypedDict
tool_use_result for the Glob tool.
Source code in src/clawd_code_sdk/models/output_types.py
countIsComplete
instance-attribute
¶
Whether totalMatches is exact.
timedOut
instance-attribute
¶
Whether the search timed out (results may be partial).
totalMatches
instance-attribute
¶
Total matches before truncation (a lower bound when countIsComplete is false).
truncated
instance-attribute
¶
Whether results were truncated (limited to 100 files).
GrepOutput
¶
Bases: TypedDict
tool_use_result for the Grep tool (all modes).
Source code in src/clawd_code_sdk/models/output_types.py
KillShellOutput
¶
Bases: TypedDict
tool_use_result for the KillBash tool.
Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62. Shape derived from: https://github.com/kzahel/yepanywhere/blob/main/packages/shared/src/claude-sdk-schema/tool/ToolResultSchemas.ts
Source code in src/clawd_code_sdk/models/output_types.py
McpResourceEntry
¶
Bases: TypedDict
A single MCP resource entry.
Source code in src/clawd_code_sdk/models/output_types.py
MonitorOutput
¶
Bases: TypedDict
Output of the Monitor tool.
Source code in src/clawd_code_sdk/models/output_types.py
keptInSandboxByCheck
instance-attribute
¶
True when the command ran in the sandbox only because its permission check relied on the sandbox; the settings would otherwise have exempted it.
persistent
instance-attribute
¶
No timeout — runs until TaskStop or session end.
timeoutMs
instance-attribute
¶
Timeout deadline in milliseconds (0 when persistent).
NotebookEditOutput
¶
Bases: TypedDict
tool_use_result for the NotebookEdit tool.
Source code in src/clawd_code_sdk/models/output_types.py
OfferChromeSetupOutput
¶
ProjectsProjectDeleteOutput
¶
Bases: TypedDict
Projects tool output (ProjectDelete variant).
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectInfoDoc
¶
ProjectsProjectInfoFile
¶
ProjectsProjectInfoKnowledge
¶
ProjectsProjectInfoOutput
¶
Bases: TypedDict
Projects tool output (ProjectInfo variant).
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectInfoSyncSource
¶
ProjectsProjectMemoryListFile
¶
Bases: TypedDict
file entry of ProjectsProjectMemoryList.
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectMemoryListOutput
¶
Bases: TypedDict
Projects tool output (ProjectMemoryList variant).
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectMemoryReadOutput
¶
Bases: TypedDict
Projects tool output (ProjectMemoryRead variant).
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectReadOutput
¶
Bases: TypedDict
Projects tool output (ProjectRead variant).
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectSearchHit
¶
Bases: TypedDict
hit entry of ProjectsProjectSearch.
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectSearchOutput
¶
Bases: TypedDict
Projects tool output (ProjectSearch variant).
Source code in src/clawd_code_sdk/models/output_types.py
ProjectsProjectWriteOutput
¶
Bases: TypedDict
Projects tool output (ProjectWrite variant).
Source code in src/clawd_code_sdk/models/output_types.py
ProposeGoalOutput
¶
Bases: TypedDict
Output of the ProposeGoal tool.
Source code in src/clawd_code_sdk/models/output_types.py
ProposeSkillsOutput
¶
Bases: TypedDict
Output of the ProposeSkills tool.
Source code in src/clawd_code_sdk/models/output_types.py
PushNotificationOutput
¶
Bases: TypedDict
Output of the PushNotification tool.
Source code in src/clawd_code_sdk/models/output_types.py
sentAt
instance-attribute
¶
ISO timestamp captured at tool execution on the emitting process.
Optional — resumed sessions replay pre-sentAt outputs verbatim.
ReadFileInfo
¶
Bases: TypedDict
Nested file info inside a Read tool result (text mode).
Source code in src/clawd_code_sdk/models/output_types.py
truncatedByTokenCap
instance-attribute
¶
True when a whole-file read was auto-paginated because it exceeded the token cap.
ReadImageDimensions
¶
Bases: TypedDict
Image dimension info for coordinate mapping.
Source code in src/clawd_code_sdk/models/output_types.py
ReadImageFileInfo
¶
Bases: TypedDict
Nested file info for image reads.
Source code in src/clawd_code_sdk/models/output_types.py
ReadImageOutput
¶
ReadMcpResourceContentItem
¶
Bases: TypedDict
A single content item from an MCP resource.
Source code in src/clawd_code_sdk/models/output_types.py
ReadMcpResourceDirOutput
¶
Bases: TypedDict
Output of the ReadMcpResourceDir tool.
Source code in src/clawd_code_sdk/models/output_types.py
error
instance-attribute
¶
Human-readable error when the server could not list the directory
resources
instance-attribute
¶
resources: list[ReadMcpResourceDirResource]
Direct children of the directory resource.
Subdirectories appear with mimeType "inode/directory".
ReadMcpResourceDirResource
¶
Bases: TypedDict
resource entry of ReadMcpResourceDir.
Source code in src/clawd_code_sdk/models/output_types.py
ReadMcpResourceOutput
¶
Bases: TypedDict
tool_use_result for the ReadMcpResource tool.
Source code in src/clawd_code_sdk/models/output_types.py
error
instance-attribute
¶
Error message when the resource could not be read.
ReadNotebookFileInfo
¶
ReadNotebookOutput
¶
Bases: TypedDict
tool_use_result for the Read tool (Jupyter notebooks).
Source code in src/clawd_code_sdk/models/output_types.py
ReadNotificationsNotification
¶
Bases: TypedDict
notification entry of ReadNotifications.
Source code in src/clawd_code_sdk/models/output_types.py
arrived_at
instance-attribute
¶
RFC3339 timestamp, by this machine's clock, of when the notification reached this session's queue.
Missing from results saved before this field existed.
notification_id
instance-attribute
¶
Server-assigned stable id — the dedup key across redeliveries.
origin
instance-attribute
¶
Server-attested source token: "github_webhook" | "trigger_fire" | "mcp_send_message" (open set; unknown well-formed tokens pass through verbatim, off-grammar values coerce to "unknown").
ReadNotificationsOutput
¶
Bases: TypedDict
Output of the ReadNotifications tool.
Source code in src/clawd_code_sdk/models/output_types.py
ReadPartsFileInfo
¶
Bases: TypedDict
Nested file info for PDF parts (extracted page images).
Source code in src/clawd_code_sdk/models/output_types.py
ReadPartsOutput
¶
Bases: TypedDict
tool_use_result for the Read tool (PDF parts extraction).
Source code in src/clawd_code_sdk/models/output_types.py
firstPage
instance-attribute
¶
First page number included as page images in the model-facing tool_result.
pages
instance-attribute
¶
pages: NotRequired[list[ReadPartsPage]]
Page images (only present transiently in-process, absent on emitted results).
ReadPartsPage
¶
ReadPdfFileInfo
¶
Bases: TypedDict
Nested file info for PDF reads.
Source code in src/clawd_code_sdk/models/output_types.py
ReadPdfOutput
¶
ReadTextOutput
¶
Bases: TypedDict
tool_use_result for the Read tool (text files).
Source code in src/clawd_code_sdk/models/output_types.py
artifactRead
instance-attribute
¶
artifactRead: NotRequired[ArtifactReadMarker]
Set when the read file is an artifact that now counts as viewed.
RefreshMcpTools
¶
Bases: TypedDict
```` entry of RefreshMcpTools.
Source code in src/clawd_code_sdk/models/output_types.py
error
instance-attribute
¶
Why the refresh failed or the server was unavailable
status
instance-attribute
¶
refreshed: tool list re-queried and applied.
error: the re-query failed and the previous tool set was kept. not_connected: the server has no live connection to query (this tool never dials).
toolCount
instance-attribute
¶
Number of tools now available from this server
RemoteTriggerOutput
¶
ReportFindingsOutput
¶
Bases: TypedDict
Output of the ReportFindings tool.
Source code in src/clawd_code_sdk/models/output_types.py
level
instance-attribute
¶
Effort level the review ran at
SDKDeferredToolUse
¶
Bases: TypedDict
A deferred tool use from a completed agent result.
Source code in src/clawd_code_sdk/models/output_types.py
ScheduleWakeupOutput
¶
Bases: TypedDict
Output of the ScheduleWakeup tool.
Source code in src/clawd_code_sdk/models/output_types.py
cancelledWakeups
instance-attribute
¶
How many pending dynamic-loop wakeups stop:true cancelled.
0 means nothing was pending — a recurring /loop cron is not cancelled by stop:true.
clampedDelaySeconds
instance-attribute
¶
Actual delay used after clamping to runtime bounds
scheduledFor
instance-attribute
¶
Epoch ms timestamp when the next wakeup will fire
stopped
instance-attribute
¶
True when the model ended the loop via stop: true
wasClamped
instance-attribute
¶
True if the requested delaySeconds was outside [60, 3600]
SendFeedbackOutput
¶
ShowOnboardingRolePickerOutput
¶
SkillOutput
¶
Bases: TypedDict
tool_use_result for the Skill tool.
Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62. Shape derived from empirical testing.
Source code in src/clawd_code_sdk/models/output_types.py
StructuredPatchHunk
¶
Bases: TypedDict
A single hunk in a structured patch.
Source code in src/clawd_code_sdk/models/output_types.py
lines
instance-attribute
¶
Diff lines prefixed with ' ' (context), '+' (added), or '-' (removed).
TaskCreateOutput
¶
TaskCreateTask
¶
Bases: TypedDict
task entry of TaskCreate.
Source code in src/clawd_code_sdk/models/output_types.py
description
instance-attribute
¶
The task's description as saved.
It can differ from the tool_use input if Claude Code corrects a malformed call or a PreToolUse hook changes the input. Absent in results from older Claude Code versions.
TaskGetOutput
¶
TaskGetTask
¶
Bases: TypedDict
task entry of TaskGet.
Source code in src/clawd_code_sdk/models/output_types.py
TaskInfo
¶
Bases: TypedDict
Information about a background task.
Source code in src/clawd_code_sdk/models/output_types.py
TaskListOutput
¶
TaskListTask
¶
Bases: TypedDict
task entry of TaskList.
Source code in src/clawd_code_sdk/models/output_types.py
TaskOutputResult
¶
Bases: TypedDict
tool_use_result for the TaskOutput tool (background task polling).
Source code in src/clawd_code_sdk/models/output_types.py
retrieval_status
instance-attribute
¶
Status of the retrieval.
TaskStopOutput
¶
TaskUpdateOutput
¶
Bases: TypedDict
Output of the TaskUpdate tool.
Source code in src/clawd_code_sdk/models/output_types.py
TodoWriteOutput
¶
ToolReference
¶
Bases: TypedDict
A single tool reference returned by ToolSearch.
Source code in src/clawd_code_sdk/models/output_types.py
ToolSearchOutput
¶
Bases: TypedDict
tool_use_result for the ToolSearch tool.
The result is a list of tool_reference content blocks returned inside the tool_result content array.
Source code in src/clawd_code_sdk/models/output_types.py
ToolStats
¶
Bases: TypedDict
Tool usage statistics from an agent task.
Source code in src/clawd_code_sdk/models/output_types.py
linesRemoved
instance-attribute
¶
Number of lines removed by edit file tool calls.
WebFetchOutput
¶
Bases: TypedDict
tool_use_result for the WebFetch tool.
Source code in src/clawd_code_sdk/models/output_types.py
artifactRead
instance-attribute
¶
artifactRead: NotRequired[ArtifactReadMarker]
Set when the fetched URL is an artifact that now counts as viewed.
WebSearchHit
¶
Bases: TypedDict
A single search result hit.
Source code in src/clawd_code_sdk/models/output_types.py
WebSearchOutput
¶
Bases: TypedDict
tool_use_result for the WebSearch tool.
Source code in src/clawd_code_sdk/models/output_types.py
results
instance-attribute
¶
results: list[WebSearchToolResult | str]
Search results and/or text commentary from the model.
WebSearchToolResult
¶
WorkflowOutput
¶
Bases: TypedDict
Output of the Workflow tool.
Source code in src/clawd_code_sdk/models/output_types.py
runId
instance-attribute
¶
Local workflow run identifier for resumeFromRunId.
Absent for remote_launched (the CCR session URL is the resume handle there) and on transcripts written before this field existed.
scriptPath
instance-attribute
¶
Path to the persisted workflow script for this invocation.
Editable via Write/Edit; pass back as scriptPath to re-run without resending the script.
sessionUrl
instance-attribute
¶
CCR session URL when status is remote_launched
taskType
instance-attribute
¶
TaskType of the registered background task — 'local_workflow' for in-process runs, 'remote_agent' when remote:true dispatches to CCR.
Set on all new writes; absent only on transcripts written before this field existed.
transcriptDir
instance-attribute
¶
Directory where subagent transcripts are written during execution
warning
instance-attribute
¶
Non-blocking heads-up (e.g.
local git state diverges from the pushed branch the cloud session will clone)
workflowName
instance-attribute
¶
meta.name from the workflow script — same value as task_started.workflow_name.
Set on all new writes; absent only on transcripts written before this field existed.
WriteOutput
¶
Bases: TypedDict
tool_use_result for the Write tool.
Source code in src/clawd_code_sdk/models/output_types.py
staged
instance-attribute
¶
Whether the write was staged instead of written.