Skip to content

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

                                                                                                                                                                                                                                                                                      McpOutput = str | list[dict[str, Any]] | dict[str, Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class AgentAsyncLaunchedOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output from the Task tool when an agent was launched asynchronously."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          status: Literal["async_launched"]
                                                                                                                                                                                                                                                                                          """Indicates the agent was launched in the background."""
                                                                                                                                                                                                                                                                                          isAsync: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          """Always True for async-launched agents."""
                                                                                                                                                                                                                                                                                          agentId: str
                                                                                                                                                                                                                                                                                          """The ID of the async agent."""
                                                                                                                                                                                                                                                                                          description: str
                                                                                                                                                                                                                                                                                          """The description of the task."""
                                                                                                                                                                                                                                                                                          resolvedModel: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Model in use at the backgrounding transition."""
                                                                                                                                                                                                                                                                                          modelsUsed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                          """Ordered distinct models used before backgrounding."""
                                                                                                                                                                                                                                                                                          prompt: str
                                                                                                                                                                                                                                                                                          """The prompt for the agent."""
                                                                                                                                                                                                                                                                                          outputFile: str
                                                                                                                                                                                                                                                                                          """Path to the output file for checking agent progress."""
                                                                                                                                                                                                                                                                                          canReadOutputFile: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the calling agent has Read/Bash tools to check progress."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      agentId instance-attribute

                                                                                                                                                                                                                                                                                      agentId: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The ID of the async agent.

                                                                                                                                                                                                                                                                                      canReadOutputFile instance-attribute

                                                                                                                                                                                                                                                                                      canReadOutputFile: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the calling agent has Read/Bash tools to check progress.

                                                                                                                                                                                                                                                                                      description instance-attribute

                                                                                                                                                                                                                                                                                      description: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The description of the task.

                                                                                                                                                                                                                                                                                      isAsync instance-attribute

                                                                                                                                                                                                                                                                                      isAsync: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Always True for async-launched agents.

                                                                                                                                                                                                                                                                                      modelsUsed instance-attribute

                                                                                                                                                                                                                                                                                      modelsUsed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Ordered distinct models used before backgrounding.

                                                                                                                                                                                                                                                                                      outputFile instance-attribute

                                                                                                                                                                                                                                                                                      outputFile: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Path to the output file for checking agent progress.

                                                                                                                                                                                                                                                                                      prompt instance-attribute

                                                                                                                                                                                                                                                                                      prompt: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The prompt for the agent.

                                                                                                                                                                                                                                                                                      resolvedModel instance-attribute

                                                                                                                                                                                                                                                                                      resolvedModel: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Model in use at the backgrounding transition.

                                                                                                                                                                                                                                                                                      status instance-attribute

                                                                                                                                                                                                                                                                                      status: Literal['async_launched']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class AgentCacheCreation(TypedDict):
                                                                                                                                                                                                                                                                                          """Cache creation token statistics."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          ephemeral_1h_input_tokens: int
                                                                                                                                                                                                                                                                                          """Tokens for 1-hour ephemeral cache entries."""
                                                                                                                                                                                                                                                                                          ephemeral_5m_input_tokens: int
                                                                                                                                                                                                                                                                                          """Tokens for 5-minute ephemeral cache entries."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ephemeral_1h_input_tokens instance-attribute

                                                                                                                                                                                                                                                                                      ephemeral_1h_input_tokens: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tokens for 1-hour ephemeral cache entries.

                                                                                                                                                                                                                                                                                      ephemeral_5m_input_tokens instance-attribute

                                                                                                                                                                                                                                                                                      ephemeral_5m_input_tokens: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tokens for 5-minute ephemeral cache entries.

                                                                                                                                                                                                                                                                                      AgentCompletedOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output from the Task tool when the agent completed successfully.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class AgentCompletedOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output from the Task tool when the agent completed successfully."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          status: Literal["completed"]
                                                                                                                                                                                                                                                                                          """Agent completion status."""
                                                                                                                                                                                                                                                                                          agentId: str
                                                                                                                                                                                                                                                                                          """ID of the agent that ran."""
                                                                                                                                                                                                                                                                                          agentType: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Type of the agent that ran."""
                                                                                                                                                                                                                                                                                          content: list[AgentOutputTextContent]
                                                                                                                                                                                                                                                                                          """Text content blocks produced by the agent."""
                                                                                                                                                                                                                                                                                          resolvedModel: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Model the agent ran on."""
                                                                                                                                                                                                                                                                                          modelsUsed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                          """Ordered distinct models used (length > 1 means a mid-run swap)."""
                                                                                                                                                                                                                                                                                          totalToolUseCount: int
                                                                                                                                                                                                                                                                                          """Total number of tool calls made."""
                                                                                                                                                                                                                                                                                          totalDurationMs: int
                                                                                                                                                                                                                                                                                          """Total execution duration in milliseconds."""
                                                                                                                                                                                                                                                                                          totalTokens: int
                                                                                                                                                                                                                                                                                          """Total tokens used."""
                                                                                                                                                                                                                                                                                          usage: AgentOutputUsage
                                                                                                                                                                                                                                                                                          """Detailed token usage statistics."""
                                                                                                                                                                                                                                                                                          toolsUsed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                          """Names of the tools the agent used."""
                                                                                                                                                                                                                                                                                          toolStats: NotRequired[ToolStats]
                                                                                                                                                                                                                                                                                          """Tool usage statistics."""
                                                                                                                                                                                                                                                                                          prompt: str
                                                                                                                                                                                                                                                                                          """The prompt that was given to the agent."""
                                                                                                                                                                                                                                                                                          worktreePath: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Worktree the agent ran in (isolation="worktree")."""
                                                                                                                                                                                                                                                                                          worktreeBranch: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Branch of the agent's worktree."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      agentId instance-attribute

                                                                                                                                                                                                                                                                                      agentId: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ID of the agent that ran.

                                                                                                                                                                                                                                                                                      agentType instance-attribute

                                                                                                                                                                                                                                                                                      agentType: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Type of the agent that ran.

                                                                                                                                                                                                                                                                                      content instance-attribute

                                                                                                                                                                                                                                                                                      content: list[AgentOutputTextContent]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Text content blocks produced by the agent.

                                                                                                                                                                                                                                                                                      modelsUsed instance-attribute

                                                                                                                                                                                                                                                                                      modelsUsed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Ordered distinct models used (length > 1 means a mid-run swap).

                                                                                                                                                                                                                                                                                      prompt instance-attribute

                                                                                                                                                                                                                                                                                      prompt: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The prompt that was given to the agent.

                                                                                                                                                                                                                                                                                      resolvedModel instance-attribute

                                                                                                                                                                                                                                                                                      resolvedModel: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Model the agent ran on.

                                                                                                                                                                                                                                                                                      status instance-attribute

                                                                                                                                                                                                                                                                                      status: Literal['completed']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Agent completion status.

                                                                                                                                                                                                                                                                                      toolStats instance-attribute

                                                                                                                                                                                                                                                                                      toolStats: NotRequired[ToolStats]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tool usage statistics.

                                                                                                                                                                                                                                                                                      toolsUsed instance-attribute

                                                                                                                                                                                                                                                                                      toolsUsed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Names of the tools the agent used.

                                                                                                                                                                                                                                                                                      totalDurationMs instance-attribute

                                                                                                                                                                                                                                                                                      totalDurationMs: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Total execution duration in milliseconds.

                                                                                                                                                                                                                                                                                      totalTokens instance-attribute

                                                                                                                                                                                                                                                                                      totalTokens: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Total tokens used.

                                                                                                                                                                                                                                                                                      totalToolUseCount instance-attribute

                                                                                                                                                                                                                                                                                      totalToolUseCount: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Total number of tool calls made.

                                                                                                                                                                                                                                                                                      usage instance-attribute

                                                                                                                                                                                                                                                                                      Detailed token usage statistics.

                                                                                                                                                                                                                                                                                      worktreeBranch instance-attribute

                                                                                                                                                                                                                                                                                      worktreeBranch: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Branch of the agent's worktree.

                                                                                                                                                                                                                                                                                      worktreePath instance-attribute

                                                                                                                                                                                                                                                                                      worktreePath: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class AgentOutputTextContent(TypedDict):
                                                                                                                                                                                                                                                                                          """A text content block in agent output."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["text"]
                                                                                                                                                                                                                                                                                          """Content type, always 'text'."""
                                                                                                                                                                                                                                                                                          text: str
                                                                                                                                                                                                                                                                                          """The text content."""
                                                                                                                                                                                                                                                                                          citations: NotRequired[list[Any] | None]
                                                                                                                                                                                                                                                                                          """Citations attached to the text block."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      citations instance-attribute

                                                                                                                                                                                                                                                                                      citations: NotRequired[list[Any] | None]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Citations attached to the text block.

                                                                                                                                                                                                                                                                                      text instance-attribute

                                                                                                                                                                                                                                                                                      text: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The text content.

                                                                                                                                                                                                                                                                                      type instance-attribute

                                                                                                                                                                                                                                                                                      type: Literal['text']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Content type, always 'text'.

                                                                                                                                                                                                                                                                                      AgentOutputTokensDetails

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Breakdown of output tokens of an agent task.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class AgentOutputTokensDetails(TypedDict):
                                                                                                                                                                                                                                                                                          """Breakdown of output tokens of an agent task."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          thinking_tokens: NotRequired[int | None]
                                                                                                                                                                                                                                                                                          """Number of thinking tokens."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      thinking_tokens instance-attribute

                                                                                                                                                                                                                                                                                      thinking_tokens: NotRequired[int | None]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class AgentOutputUsage(TypedDict):
                                                                                                                                                                                                                                                                                          """Token usage statistics from an agent task."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          input_tokens: int
                                                                                                                                                                                                                                                                                          """Number of input tokens consumed."""
                                                                                                                                                                                                                                                                                          output_tokens: int
                                                                                                                                                                                                                                                                                          """Number of output tokens generated."""
                                                                                                                                                                                                                                                                                          cache_creation_input_tokens: int | None
                                                                                                                                                                                                                                                                                          """Tokens used to create cache entries."""
                                                                                                                                                                                                                                                                                          cache_read_input_tokens: int | None
                                                                                                                                                                                                                                                                                          """Tokens read from cache."""
                                                                                                                                                                                                                                                                                          server_tool_use: AgentServerToolUse | None
                                                                                                                                                                                                                                                                                          """Server-side tool usage statistics."""
                                                                                                                                                                                                                                                                                          service_tier: ServiceTier | None
                                                                                                                                                                                                                                                                                          """Service tier used for the request."""
                                                                                                                                                                                                                                                                                          cache_creation: AgentCacheCreation | None
                                                                                                                                                                                                                                                                                          """Cache creation statistics."""
                                                                                                                                                                                                                                                                                          inference_geo: NotRequired[str | None]
                                                                                                                                                                                                                                                                                          """Inference geography."""
                                                                                                                                                                                                                                                                                          speed: NotRequired[str | None]
                                                                                                                                                                                                                                                                                          """Speed mode."""
                                                                                                                                                                                                                                                                                          iterations: NotRequired[Any]
                                                                                                                                                                                                                                                                                          """Per-iteration usage."""
                                                                                                                                                                                                                                                                                          output_tokens_details: NotRequired[AgentOutputTokensDetails | None]
                                                                                                                                                                                                                                                                                          """Breakdown of output tokens."""
                                                                                                                                                                                                                                                                                          fallback_credit: NotRequired[Any]
                                                                                                                                                                                                                                                                                          """Fallback credit info."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      cache_creation instance-attribute

                                                                                                                                                                                                                                                                                      cache_creation: AgentCacheCreation | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Cache creation statistics.

                                                                                                                                                                                                                                                                                      cache_creation_input_tokens instance-attribute

                                                                                                                                                                                                                                                                                      cache_creation_input_tokens: int | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tokens used to create cache entries.

                                                                                                                                                                                                                                                                                      cache_read_input_tokens instance-attribute

                                                                                                                                                                                                                                                                                      cache_read_input_tokens: int | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tokens read from cache.

                                                                                                                                                                                                                                                                                      fallback_credit instance-attribute

                                                                                                                                                                                                                                                                                      fallback_credit: NotRequired[Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Fallback credit info.

                                                                                                                                                                                                                                                                                      inference_geo instance-attribute

                                                                                                                                                                                                                                                                                      inference_geo: NotRequired[str | None]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Inference geography.

                                                                                                                                                                                                                                                                                      input_tokens instance-attribute

                                                                                                                                                                                                                                                                                      input_tokens: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of input tokens consumed.

                                                                                                                                                                                                                                                                                      iterations instance-attribute

                                                                                                                                                                                                                                                                                      iterations: NotRequired[Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Per-iteration usage.

                                                                                                                                                                                                                                                                                      output_tokens instance-attribute

                                                                                                                                                                                                                                                                                      output_tokens: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of output tokens generated.

                                                                                                                                                                                                                                                                                      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: ServiceTier | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Service tier used for the request.

                                                                                                                                                                                                                                                                                      speed instance-attribute

                                                                                                                                                                                                                                                                                      speed: NotRequired[str | None]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Speed mode.

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class AgentRemoteLaunchedOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output from the Agent tool when an agent was launched in a remote (cloud) session."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          status: Literal["remote_launched"]
                                                                                                                                                                                                                                                                                          """Indicates the agent was launched remotely."""
                                                                                                                                                                                                                                                                                          taskId: str
                                                                                                                                                                                                                                                                                          """The ID of the remote agent task."""
                                                                                                                                                                                                                                                                                          sessionUrl: str
                                                                                                                                                                                                                                                                                          """The URL of the cloud session."""
                                                                                                                                                                                                                                                                                          description: str
                                                                                                                                                                                                                                                                                          """The description of the task."""
                                                                                                                                                                                                                                                                                          prompt: str
                                                                                                                                                                                                                                                                                          """The prompt for the agent."""
                                                                                                                                                                                                                                                                                          outputFile: str
                                                                                                                                                                                                                                                                                          """Path to the output file for checking agent progress."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      description instance-attribute

                                                                                                                                                                                                                                                                                      description: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The description of the task.

                                                                                                                                                                                                                                                                                      outputFile instance-attribute

                                                                                                                                                                                                                                                                                      outputFile: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Path to the output file for checking agent progress.

                                                                                                                                                                                                                                                                                      prompt instance-attribute

                                                                                                                                                                                                                                                                                      prompt: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The prompt for the agent.

                                                                                                                                                                                                                                                                                      sessionUrl instance-attribute

                                                                                                                                                                                                                                                                                      sessionUrl: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The URL of the cloud session.

                                                                                                                                                                                                                                                                                      status instance-attribute

                                                                                                                                                                                                                                                                                      status: Literal['remote_launched']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Indicates the agent was launched remotely.

                                                                                                                                                                                                                                                                                      taskId instance-attribute

                                                                                                                                                                                                                                                                                      taskId: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The ID of the remote agent task.

                                                                                                                                                                                                                                                                                      ArtifactArtifactsArtifact

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      artifact entry of ArtifactArtifacts.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactArtifactsArtifact(TypedDict):
                                                                                                                                                                                                                                                                                          """``artifact`` entry of ArtifactArtifacts."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          title: str
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          favicon: NotRequired[str]
                                                                                                                                                                                                                                                                                          updatedAt: NotRequired[str]
                                                                                                                                                                                                                                                                                          rel: NotRequired[Literal["mine", "shared"]]
                                                                                                                                                                                                                                                                                          external: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          role: NotRequired[Literal["editor", "commenter", "reader", "viewer"]]
                                                                                                                                                                                                                                                                                          outsidersMayHaveWritten: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          pinned: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactArtifactsOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (Artifacts variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactArtifactsOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (Artifacts variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          artifacts: list[ArtifactArtifactsArtifact]
                                                                                                                                                                                                                                                                                          truncated: NotRequired[bool]
                                                                                                                                                                                                                                                                                          total: NotRequired[int]
                                                                                                                                                                                                                                                                                          total_at_least: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          next_page_token: NotRequired[str]
                                                                                                                                                                                                                                                                                          pins_enabled: NotRequired[bool]
                                                                                                                                                                                                                                                                                          scope: NotRequired[Literal["shared", "all"]]
                                                                                                                                                                                                                                                                                          external_listed: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetDeleteAssetDelete

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      asset_delete entry of ArtifactAssetDelete.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetDeleteAssetDelete(TypedDict):
                                                                                                                                                                                                                                                                                          """``asset_delete`` entry of ArtifactAssetDelete."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          deleted: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetDeleteOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (AssetDelete variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetDeleteOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (AssetDelete variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          written: NotRequired[ArtifactAssetDeleteWritten]
                                                                                                                                                                                                                                                                                          owned: NotRequired[bool]
                                                                                                                                                                                                                                                                                          asset_delete: ArtifactAssetDeleteAssetDelete
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetDeleteWritten

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      written entry of ArtifactAssetDelete.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetDeleteWritten(TypedDict):
                                                                                                                                                                                                                                                                                          """``written`` entry of ArtifactAssetDelete."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetListAssetList

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      asset_list entry of ArtifactAssetList.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetListAssetList(TypedDict):
                                                                                                                                                                                                                                                                                          """``asset_list`` entry of ArtifactAssetList."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          assets: list[ArtifactAssetListAssetListAsset]
                                                                                                                                                                                                                                                                                          """@maxItems 1000"""
                                                                                                                                                                                                                                                                                          usage: ArtifactAssetListAssetListUsage
                                                                                                                                                                                                                                                                                          next: NotRequired[str]
                                                                                                                                                                                                                                                                                          cowritten: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          outside_writer: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      assets instance-attribute

                                                                                                                                                                                                                                                                                      @maxItems 1000

                                                                                                                                                                                                                                                                                      ArtifactAssetListAssetListAsset

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      asset entry of ArtifactAssetListAssetList.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetListAssetListAsset(TypedDict):
                                                                                                                                                                                                                                                                                          """``asset`` entry of ArtifactAssetListAssetList."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          content_type: str
                                                                                                                                                                                                                                                                                          size_bytes: int
                                                                                                                                                                                                                                                                                          sha256: NotRequired[str]
                                                                                                                                                                                                                                                                                          created_at: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetListAssetListUsage

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      usage entry of ArtifactAssetListAssetList.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetListAssetListUsage(TypedDict):
                                                                                                                                                                                                                                                                                          """``usage`` entry of ArtifactAssetListAssetList."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          files: float
                                                                                                                                                                                                                                                                                          bytes: int
                                                                                                                                                                                                                                                                                          max_files: float
                                                                                                                                                                                                                                                                                          max_bytes: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetListOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (AssetList variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetListOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (AssetList variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          asset_list: ArtifactAssetListAssetList
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetReadAssetRead

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      asset_read entry of ArtifactAssetRead.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetReadAssetRead(TypedDict):
                                                                                                                                                                                                                                                                                          """``asset_read`` entry of ArtifactAssetRead."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          size_bytes: int
                                                                                                                                                                                                                                                                                          content_type: str
                                                                                                                                                                                                                                                                                          sha256: str
                                                                                                                                                                                                                                                                                          cowritten: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          outside_writer: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          public_read: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          foreign: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetReadOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (AssetRead variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetReadOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (AssetRead variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          asset_read: ArtifactAssetReadAssetRead
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetUploadAssetUpload

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      asset_upload entry of ArtifactAssetUpload.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadAssetUpload(TypedDict):
                                                                                                                                                                                                                                                                                          """``asset_upload`` entry of ArtifactAssetUpload."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          size_bytes: int
                                                                                                                                                                                                                                                                                          content_type: str
                                                                                                                                                                                                                                                                                          sha256: NotRequired[str]
                                                                                                                                                                                                                                                                                          file_name: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetUploadOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (AssetUpload variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (AssetUpload variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          written: NotRequired[ArtifactAssetUploadWritten]
                                                                                                                                                                                                                                                                                          owned: NotRequired[bool]
                                                                                                                                                                                                                                                                                          asset_upload: ArtifactAssetUploadAssetUpload
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetUploadWritten

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      written entry of ArtifactAssetUpload.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadWritten(TypedDict):
                                                                                                                                                                                                                                                                                          """``written`` entry of ArtifactAssetUpload."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetUploadsAssetUploads

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      asset_uploads entry of ArtifactAssetUploads.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadsAssetUploads(TypedDict):
                                                                                                                                                                                                                                                                                          """``asset_uploads`` entry of ArtifactAssetUploads."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          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
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadsAssetUploadsResultId(TypedDict):
                                                                                                                                                                                                                                                                                          """``result`` variant of ArtifactAssetUploadsAssetUploads (Id)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          file_path: str
                                                                                                                                                                                                                                                                                          status: Literal["uploaded"]
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          size_bytes: int
                                                                                                                                                                                                                                                                                          content_type: str
                                                                                                                                                                                                                                                                                          sha256: NotRequired[str]
                                                                                                                                                                                                                                                                                          file_name: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetUploadsAssetUploadsResultReason

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      result variant of ArtifactAssetUploadsAssetUploads (Reason).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadsAssetUploadsResultReason(TypedDict):
                                                                                                                                                                                                                                                                                          """``result`` variant of ArtifactAssetUploadsAssetUploads (Reason)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          file_path: str
                                                                                                                                                                                                                                                                                          status: Literal["failed", "not_attempted"]
                                                                                                                                                                                                                                                                                          reason: str
                                                                                                                                                                                                                                                                                          message: str
                                                                                                                                                                                                                                                                                          may_be_stored: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetUploadsOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (AssetUploads variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadsOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (AssetUploads variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          written: NotRequired[ArtifactAssetUploadsWritten]
                                                                                                                                                                                                                                                                                          owned: NotRequired[bool]
                                                                                                                                                                                                                                                                                          asset_uploads: ArtifactAssetUploadsAssetUploads
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactAssetUploadsWritten

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      written entry of ArtifactAssetUploads.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactAssetUploadsWritten(TypedDict):
                                                                                                                                                                                                                                                                                          """``written`` entry of ArtifactAssetUploads."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactPinOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (Pin variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactPinOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (Pin variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          pin: ArtifactPinPin
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactPinPin

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      pin entry of ArtifactPin.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactPinPin(TypedDict):
                                                                                                                                                                                                                                                                                          """``pin`` entry of ArtifactPin."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          action: Literal["pin", "unpin"]
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          pinned: bool
                                                                                                                                                                                                                                                                                          title: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactReadArtifactRead

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      artifactRead entry of ArtifactRead.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactReadArtifactRead(TypedDict):
                                                                                                                                                                                                                                                                                          """``artifactRead`` entry of ArtifactRead."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          slug: str
                                                                                                                                                                                                                                                                                          ver: NotRequired[str]
                                                                                                                                                                                                                                                                                          seeded: NotRequired[Literal[False]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactReadMarker

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Marks a read/fetched artifact as viewed.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactReadMarker(TypedDict):
                                                                                                                                                                                                                                                                                          """Marks a read/fetched artifact as viewed."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          slug: str
                                                                                                                                                                                                                                                                                          ver: NotRequired[str]
                                                                                                                                                                                                                                                                                          seeded: NotRequired[Literal[False]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactReadOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (Read variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactReadOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (Read variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          read: ArtifactReadRead
                                                                                                                                                                                                                                                                                          owned: NotRequired[bool]
                                                                                                                                                                                                                                                                                          artifactRead: NotRequired[ArtifactReadArtifactRead]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactReadRead

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      read entry of ArtifactRead.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactReadRead(TypedDict):
                                                                                                                                                                                                                                                                                          """``read`` entry of ArtifactRead."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          bytes: int
                                                                                                                                                                                                                                                                                          code: float
                                                                                                                                                                                                                                                                                          codeText: str
                                                                                                                                                                                                                                                                                          result: str
                                                                                                                                                                                                                                                                                          durationMs: float
                                                                                                                                                                                                                                                                                          title: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactUnwatchOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (Unwatch variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactUnwatchOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (Unwatch variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          unwatch: ArtifactUnwatchUnwatch
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactUnwatchUnwatch

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      unwatch entry of ArtifactUnwatch.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactUnwatchUnwatch(TypedDict):
                                                                                                                                                                                                                                                                                          """``unwatch`` entry of ArtifactUnwatch."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          was_watching: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactUrlOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (Url variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactUrlOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (Url variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          artifact_id: NotRequired[str]
                                                                                                                                                                                                                                                                                          title: NotRequired[str]
                                                                                                                                                                                                                                                                                          version: NotRequired[str]
                                                                                                                                                                                                                                                                                          capabilities: NotRequired[Any]
                                                                                                                                                                                                                                                                                          stored: NotRequired[ArtifactUrlStored]
                                                                                                                                                                                                                                                                                          warnings: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                          publishesRemaining: NotRequired[float]
                                                                                                                                                                                                                                                                                          publishesResetAt: NotRequired[float]
                                                                                                                                                                                                                                                                                          contract: NotRequired[str]
                                                                                                                                                                                                                                                                                          updated: NotRequired[bool]
                                                                                                                                                                                                                                                                                          owned: NotRequired[bool]
                                                                                                                                                                                                                                                                                          icon: NotRequired[str]
                                                                                                                                                                                                                                                                                          faviconSent: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          iconDropped: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          audience: NotRequired[str]
                                                                                                                                                                                                                                                                                          folder_audience: NotRequired[Literal["others", "unknown"]]
                                                                                                                                                                                                                                                                                          seq: NotRequired[float]
                                                                                                                                                                                                                                                                                          unchanged: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          liveSubscription: NotRequired[str]
                                                                                                                                                                                                                                                                                          pinned: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactUrlStored

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      stored entry of ArtifactUrl.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactUrlStored(TypedDict):
                                                                                                                                                                                                                                                                                          """``stored`` entry of ArtifactUrl."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          contract: str
                                                                                                                                                                                                                                                                                          preferredContract: NotRequired[str]
                                                                                                                                                                                                                                                                                          capabilities: NotRequired[dict[str, Any]]
                                                                                                                                                                                                                                                                                          carried: NotRequired[bool]
                                                                                                                                                                                                                                                                                          read: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactWatchOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (Watch variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactWatchOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (Watch variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          watch: ArtifactWatchWatch
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactWatchWatch

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      watch entry of ArtifactWatch.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactWatchWatch(TypedDict):
                                                                                                                                                                                                                                                                                          """``watch`` entry of ArtifactWatch."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          watching: bool
                                                                                                                                                                                                                                                                                          outcome: str
                                                                                                                                                                                                                                                                                          reason: NotRequired[str]
                                                                                                                                                                                                                                                                                          durable_skip_reason: NotRequired[str]
                                                                                                                                                                                                                                                                                          task_id: NotRequired[str]
                                                                                                                                                                                                                                                                                          since: NotRequired[float]
                                                                                                                                                                                                                                                                                          token_expires_at: NotRequired[float]
                                                                                                                                                                                                                                                                                          rail: NotRequired[str]
                                                                                                                                                                                                                                                                                          trigger_id: NotRequired[str]
                                                                                                                                                                                                                                                                                          durable_since: NotRequired[str]
                                                                                                                                                                                                                                                                                          status: NotRequired[int]
                                                                                                                                                                                                                                                                                          detail: NotRequired[str]
                                                                                                                                                                                                                                                                                          note: NotRequired[str]
                                                                                                                                                                                                                                                                                          events: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactWatchesArm

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      arm entry of ArtifactWatches.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactWatchesArm(TypedDict):
                                                                                                                                                                                                                                                                                          """``arm`` entry of ArtifactWatches."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          rail: NotRequired[str]
                                                                                                                                                                                                                                                                                          state: str
                                                                                                                                                                                                                                                                                          reconnect: NotRequired[bool]
                                                                                                                                                                                                                                                                                          failures: NotRequired[float]
                                                                                                                                                                                                                                                                                          max_failures: NotRequired[float]
                                                                                                                                                                                                                                                                                          next_in_s: NotRequired[float]
                                                                                                                                                                                                                                                                                          last_failure: NotRequired[str]
                                                                                                                                                                                                                                                                                          reason: NotRequired[str]
                                                                                                                                                                                                                                                                                          detail: NotRequired[str]
                                                                                                                                                                                                                                                                                          server_message: NotRequired[str]
                                                                                                                                                                                                                                                                                          at: NotRequired[float]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactWatchesOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Artifact tool output (Watches variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactWatchesOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Artifact tool output (Watches variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          watches: list[
                                                                                                                                                                                                                                                                                              ArtifactWatchesWatchTaskId | ArtifactWatchesWatchTriggerId | ArtifactWatchesWatchStopKind
                                                                                                                                                                                                                                                                                          ]
                                                                                                                                                                                                                                                                                          filter_url: NotRequired[str]
                                                                                                                                                                                                                                                                                          arms: NotRequired[list[ArtifactWatchesArm]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactWatchesWatchStopKind

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      watch variant of ArtifactWatches (StopKind).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactWatchesWatchStopKind(TypedDict):
                                                                                                                                                                                                                                                                                          """``watch`` variant of ArtifactWatches (StopKind)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          rail: Literal["live_stopped"]
                                                                                                                                                                                                                                                                                          since: NotRequired[float]
                                                                                                                                                                                                                                                                                          explicit: NotRequired[bool]
                                                                                                                                                                                                                                                                                          armed_via: NotRequired[str]
                                                                                                                                                                                                                                                                                          stop_kind: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactWatchesWatchTaskId

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      watch variant of ArtifactWatches (TaskId).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactWatchesWatchTaskId(TypedDict):
                                                                                                                                                                                                                                                                                          """``watch`` variant of ArtifactWatches (TaskId)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          task_id: str
                                                                                                                                                                                                                                                                                          since: float
                                                                                                                                                                                                                                                                                          explicit: bool
                                                                                                                                                                                                                                                                                          connected: bool
                                                                                                                                                                                                                                                                                          connecting: NotRequired[bool]
                                                                                                                                                                                                                                                                                          token_expires_at: float
                                                                                                                                                                                                                                                                                          armed_via: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ArtifactWatchesWatchTriggerId

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      watch variant of ArtifactWatches (TriggerId).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ArtifactWatchesWatchTriggerId(TypedDict):
                                                                                                                                                                                                                                                                                          """``watch`` variant of ArtifactWatches (TriggerId)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          rail: Literal["durable_wake"]
                                                                                                                                                                                                                                                                                          trigger_id: str
                                                                                                                                                                                                                                                                                          since: str
                                                                                                                                                                                                                                                                                          events: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                          restored: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      AskUserQuestionAnnotation

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Per-question annotation attached to an AskUserQuestion answer.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class AskUserQuestionAnnotation(TypedDict):
                                                                                                                                                                                                                                                                                          """Per-question annotation attached to an AskUserQuestion answer."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          preview: NotRequired[str]
                                                                                                                                                                                                                                                                                          notes: NotRequired[str]
                                                                                                                                                                                                                                                                                          unanswered: NotRequired[Literal["skipped", "replied_in_chat", "dismissed"]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      AskUserQuestionItem

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A single question that was asked.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class AskUserQuestionItem(TypedDict):
                                                                                                                                                                                                                                                                                          """A single question that was asked."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          question: str
                                                                                                                                                                                                                                                                                          header: str
                                                                                                                                                                                                                                                                                          options: list[AskUserQuestionOption]
                                                                                                                                                                                                                                                                                          multiSelect: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      AskUserQuestionOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the AskUserQuestion tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class AskUserQuestionOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the AskUserQuestion tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          questions: list[AskUserQuestionItem]
                                                                                                                                                                                                                                                                                          """The questions that were asked."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          answers: dict[str, str]
                                                                                                                                                                                                                                                                                          """Maps question text to answer string. Multi-select answers are comma-separated."""
                                                                                                                                                                                                                                                                                          response: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Free-text response from the user."""
                                                                                                                                                                                                                                                                                          annotations: NotRequired[dict[str, AskUserQuestionAnnotation]]
                                                                                                                                                                                                                                                                                          """Per-question annotations from the user, keyed by question text."""
                                                                                                                                                                                                                                                                                          afkTimeoutMs: NotRequired[float]
                                                                                                                                                                                                                                                                                          """Set when the question timed out because the user was away (ms)."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      afkTimeoutMs instance-attribute

                                                                                                                                                                                                                                                                                      afkTimeoutMs: NotRequired[float]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      answers: dict[str, str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Maps question text to answer string. Multi-select answers are comma-separated.

                                                                                                                                                                                                                                                                                      questions instance-attribute

                                                                                                                                                                                                                                                                                      questions: list[AskUserQuestionItem]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The questions that were asked.

                                                                                                                                                                                                                                                                                      response instance-attribute

                                                                                                                                                                                                                                                                                      response: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Free-text response from the user.

                                                                                                                                                                                                                                                                                      BashGitBranchOperation

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A branch merge/rebase detected in a Bash command.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class BashGitBranchOperation(TypedDict):
                                                                                                                                                                                                                                                                                          """A branch merge/rebase detected in a Bash command."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          ref: str
                                                                                                                                                                                                                                                                                          action: Literal["merged", "rebased"]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      BashGitCommit

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A git commit detected in a Bash command.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class BashGitCommit(TypedDict):
                                                                                                                                                                                                                                                                                          """A git commit detected in a Bash command."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          sha: str
                                                                                                                                                                                                                                                                                          kind: Literal["committed", "amended", "cherry-picked"]
                                                                                                                                                                                                                                                                                          branch: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      BashGitOperation

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Git/gh operations detected in a Bash command.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class BashGitOperation(TypedDict):
                                                                                                                                                                                                                                                                                          """Git/gh operations detected in a Bash command."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          commit: NotRequired[BashGitCommit]
                                                                                                                                                                                                                                                                                          push: NotRequired[BashGitPush]
                                                                                                                                                                                                                                                                                          branch: NotRequired[BashGitBranchOperation]
                                                                                                                                                                                                                                                                                          pr: NotRequired[BashGitPullRequest]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      BashGitPullRequest

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A gh PR operation detected in a Bash command.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class BashGitPullRequest(TypedDict):
                                                                                                                                                                                                                                                                                          """A gh PR operation detected in a Bash command."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          number: int
                                                                                                                                                                                                                                                                                          url: NotRequired[str]
                                                                                                                                                                                                                                                                                          action: Literal[
                                                                                                                                                                                                                                                                                              "created",
                                                                                                                                                                                                                                                                                              "edited",
                                                                                                                                                                                                                                                                                              "merged",
                                                                                                                                                                                                                                                                                              "commented",
                                                                                                                                                                                                                                                                                              "closed",
                                                                                                                                                                                                                                                                                              "reopened",
                                                                                                                                                                                                                                                                                              "ready",
                                                                                                                                                                                                                                                                                              "draft",
                                                                                                                                                                                                                                                                                              "auto-merge-enabled",
                                                                                                                                                                                                                                                                                              "auto-merge-disabled",
                                                                                                                                                                                                                                                                                          ]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      BashGitPush

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A git push detected in a Bash command.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class BashGitPush(TypedDict):
                                                                                                                                                                                                                                                                                          """A git push detected in a Bash command."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          branch: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      BashOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Bash tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class BashOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Bash tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          stdout: str
                                                                                                                                                                                                                                                                                          """Standard output from the command."""
                                                                                                                                                                                                                                                                                          stderr: str
                                                                                                                                                                                                                                                                                          """Standard error from the command."""
                                                                                                                                                                                                                                                                                          interrupted: bool
                                                                                                                                                                                                                                                                                          """Whether the command was interrupted."""
                                                                                                                                                                                                                                                                                          isImage: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the output is an image."""
                                                                                                                                                                                                                                                                                          noOutputExpected: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the command is expected to produce no output on success."""
                                                                                                                                                                                                                                                                                          backgroundTaskId: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Task ID when ``run_in_background=true`` was used."""
                                                                                                                                                                                                                                                                                          backgroundedByUser: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """True if the user manually backgrounded the command with Ctrl+B."""
                                                                                                                                                                                                                                                                                          rawOutputPath: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Path to raw output file for large MCP tool outputs."""
                                                                                                                                                                                                                                                                                          dangerouslyDisableSandbox: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether sandbox mode was overridden."""
                                                                                                                                                                                                                                                                                          returnCodeInterpretation: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Semantic interpretation for non-error exit codes with special meaning."""
                                                                                                                                                                                                                                                                                          structuredContent: NotRequired[list[Any]]
                                                                                                                                                                                                                                                                                          """Structured content blocks."""
                                                                                                                                                                                                                                                                                          persistedOutputPath: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Path to persisted full output (when output is too large for inline)."""
                                                                                                                                                                                                                                                                                          persistedOutputSize: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Total size of the output in bytes (when output is too large for inline)."""
                                                                                                                                                                                                                                                                                          staleReadFileStateHint: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Model-facing note listing readFileState entries whose mtime bumped during this command."""
                                                                                                                                                                                                                                                                                          # tokenSaverOutput: NotRequired[str]
                                                                                                                                                                                                                                                                                          # """Compressed output sent to model when token-saver is active (UI still uses stdout)."""
                                                                                                                                                                                                                                                                                          ghRateLimitHint: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Model-facing sys-reminder appended when a gh cmd reports a GitHub API rate-limit error."""
                                                                                                                                                                                                                                                                                          timedOutAfterMs: NotRequired[float]
                                                                                                                                                                                                                                                                                          """Set when the command hit its timeout and was auto-backgrounded; the timeout in ms."""
                                                                                                                                                                                                                                                                                          backgroundCwdHint: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Note that the session cwd was not changed by a backgrounded directory-change command."""
                                                                                                                                                                                                                                                                                          backgroundEndsWithFinalResponse: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          """True when this backgrounded command is terminated at its caller's final response."""
                                                                                                                                                                                                                                                                                          backgroundWakesOwner: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                          """True when the subagent owning this backgrounded command is woken by its end."""
                                                                                                                                                                                                                                                                                          gitOperation: NotRequired[BashGitOperation]
                                                                                                                                                                                                                                                                                          """Structured classification of git/gh operations detected in this command."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      backgroundCwdHint instance-attribute

                                                                                                                                                                                                                                                                                      backgroundCwdHint: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Note that the session cwd was not changed by a backgrounded directory-change command.

                                                                                                                                                                                                                                                                                      backgroundEndsWithFinalResponse instance-attribute

                                                                                                                                                                                                                                                                                      backgroundEndsWithFinalResponse: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      True when this backgrounded command is terminated at its caller's final response.

                                                                                                                                                                                                                                                                                      backgroundTaskId instance-attribute

                                                                                                                                                                                                                                                                                      backgroundTaskId: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Task ID when run_in_background=true was used.

                                                                                                                                                                                                                                                                                      backgroundWakesOwner instance-attribute

                                                                                                                                                                                                                                                                                      backgroundWakesOwner: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      True when the subagent owning this backgrounded command is woken by its end.

                                                                                                                                                                                                                                                                                      backgroundedByUser instance-attribute

                                                                                                                                                                                                                                                                                      backgroundedByUser: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      True if the user manually backgrounded the command with Ctrl+B.

                                                                                                                                                                                                                                                                                      dangerouslyDisableSandbox instance-attribute

                                                                                                                                                                                                                                                                                      dangerouslyDisableSandbox: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether sandbox mode was overridden.

                                                                                                                                                                                                                                                                                      ghRateLimitHint instance-attribute

                                                                                                                                                                                                                                                                                      ghRateLimitHint: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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.

                                                                                                                                                                                                                                                                                      interrupted instance-attribute

                                                                                                                                                                                                                                                                                      interrupted: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the command was interrupted.

                                                                                                                                                                                                                                                                                      isImage instance-attribute

                                                                                                                                                                                                                                                                                      isImage: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the output is an image.

                                                                                                                                                                                                                                                                                      noOutputExpected instance-attribute

                                                                                                                                                                                                                                                                                      noOutputExpected: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the command is expected to produce no output on success.

                                                                                                                                                                                                                                                                                      persistedOutputPath instance-attribute

                                                                                                                                                                                                                                                                                      persistedOutputPath: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Path to persisted full output (when output is too large for inline).

                                                                                                                                                                                                                                                                                      persistedOutputSize instance-attribute

                                                                                                                                                                                                                                                                                      persistedOutputSize: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Total size of the output in bytes (when output is too large for inline).

                                                                                                                                                                                                                                                                                      rawOutputPath instance-attribute

                                                                                                                                                                                                                                                                                      rawOutputPath: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Path to raw output file for large MCP tool outputs.

                                                                                                                                                                                                                                                                                      returnCodeInterpretation instance-attribute

                                                                                                                                                                                                                                                                                      returnCodeInterpretation: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Semantic interpretation for non-error exit codes with special meaning.

                                                                                                                                                                                                                                                                                      staleReadFileStateHint instance-attribute

                                                                                                                                                                                                                                                                                      staleReadFileStateHint: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Model-facing note listing readFileState entries whose mtime bumped during this command.

                                                                                                                                                                                                                                                                                      stderr instance-attribute

                                                                                                                                                                                                                                                                                      stderr: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Standard error from the command.

                                                                                                                                                                                                                                                                                      stdout instance-attribute

                                                                                                                                                                                                                                                                                      stdout: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Standard output from the command.

                                                                                                                                                                                                                                                                                      structuredContent instance-attribute

                                                                                                                                                                                                                                                                                      structuredContent: NotRequired[list[Any]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Structured content blocks.

                                                                                                                                                                                                                                                                                      timedOutAfterMs instance-attribute

                                                                                                                                                                                                                                                                                      timedOutAfterMs: NotRequired[float]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class BashOutputOutput(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
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          shellId: NotRequired[str]
                                                                                                                                                                                                                                                                                          """ID of the background shell."""
                                                                                                                                                                                                                                                                                          command: NotRequired[str]
                                                                                                                                                                                                                                                                                          """The command that was executed."""
                                                                                                                                                                                                                                                                                          status: NotRequired[Status]
                                                                                                                                                                                                                                                                                          """Current status of the command."""
                                                                                                                                                                                                                                                                                          exitCode: NotRequired[int | None]
                                                                                                                                                                                                                                                                                          """Exit code of the command, or None if still running."""
                                                                                                                                                                                                                                                                                          stdout: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Standard output."""
                                                                                                                                                                                                                                                                                          stderr: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Standard error."""
                                                                                                                                                                                                                                                                                          stdoutLines: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of lines in stdout."""
                                                                                                                                                                                                                                                                                          stderrLines: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of lines in stderr."""
                                                                                                                                                                                                                                                                                          timestamp: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Timestamp of the output."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      command instance-attribute

                                                                                                                                                                                                                                                                                      command: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The command that was executed.

                                                                                                                                                                                                                                                                                      exitCode instance-attribute

                                                                                                                                                                                                                                                                                      exitCode: NotRequired[int | None]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Exit code of the command, or None if still running.

                                                                                                                                                                                                                                                                                      shellId instance-attribute

                                                                                                                                                                                                                                                                                      shellId: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ID of the background shell.

                                                                                                                                                                                                                                                                                      status instance-attribute

                                                                                                                                                                                                                                                                                      status: NotRequired[Status]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Current status of the command.

                                                                                                                                                                                                                                                                                      stderr instance-attribute

                                                                                                                                                                                                                                                                                      stderr: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Standard error.

                                                                                                                                                                                                                                                                                      stderrLines instance-attribute

                                                                                                                                                                                                                                                                                      stderrLines: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of lines in stderr.

                                                                                                                                                                                                                                                                                      stdout instance-attribute

                                                                                                                                                                                                                                                                                      stdout: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Standard output.

                                                                                                                                                                                                                                                                                      stdoutLines instance-attribute

                                                                                                                                                                                                                                                                                      stdoutLines: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of lines in stdout.

                                                                                                                                                                                                                                                                                      timestamp instance-attribute

                                                                                                                                                                                                                                                                                      timestamp: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Timestamp of the output.

                                                                                                                                                                                                                                                                                      ClaudeDesignOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ClaudeDesign tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ClaudeDesignOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ClaudeDesign tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          operation: str
                                                                                                                                                                                                                                                                                          content: list[dict[str, Any]]
                                                                                                                                                                                                                                                                                          isError: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ConfigOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output from the Config tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ConfigOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output from the Config tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          success: bool
                                                                                                                                                                                                                                                                                          """Whether the operation succeeded."""
                                                                                                                                                                                                                                                                                          operation: NotRequired[Literal["get", "set"]]
                                                                                                                                                                                                                                                                                          """The config operation that was performed."""
                                                                                                                                                                                                                                                                                          setting: NotRequired[str]
                                                                                                                                                                                                                                                                                          """The setting name."""
                                                                                                                                                                                                                                                                                          value: NotRequired[Any]
                                                                                                                                                                                                                                                                                          """The current or requested value."""
                                                                                                                                                                                                                                                                                          previousValue: NotRequired[Any]
                                                                                                                                                                                                                                                                                          """The previous value (for set operations)."""
                                                                                                                                                                                                                                                                                          newValue: NotRequired[Any]
                                                                                                                                                                                                                                                                                          """The new value (for set operations)."""
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Error message if the operation failed."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      error instance-attribute

                                                                                                                                                                                                                                                                                      error: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Error message if the operation failed.

                                                                                                                                                                                                                                                                                      newValue instance-attribute

                                                                                                                                                                                                                                                                                      newValue: NotRequired[Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The new value (for set operations).

                                                                                                                                                                                                                                                                                      operation instance-attribute

                                                                                                                                                                                                                                                                                      operation: NotRequired[Literal['get', 'set']]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The config operation that was performed.

                                                                                                                                                                                                                                                                                      previousValue instance-attribute

                                                                                                                                                                                                                                                                                      previousValue: NotRequired[Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The previous value (for set operations).

                                                                                                                                                                                                                                                                                      setting instance-attribute

                                                                                                                                                                                                                                                                                      setting: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The setting name.

                                                                                                                                                                                                                                                                                      success instance-attribute

                                                                                                                                                                                                                                                                                      success: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the operation succeeded.

                                                                                                                                                                                                                                                                                      value instance-attribute

                                                                                                                                                                                                                                                                                      value: NotRequired[Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The current or requested value.

                                                                                                                                                                                                                                                                                      CronCreateOneShot

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      otherOneShots entry of CronCreate.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class CronCreateOneShot(TypedDict):
                                                                                                                                                                                                                                                                                          """``otherOneShots`` entry of CronCreate."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          humanSchedule: str
                                                                                                                                                                                                                                                                                          prompt: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      CronCreateOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the CronCreate tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class CronCreateOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the CronCreate tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          humanSchedule: str
                                                                                                                                                                                                                                                                                          recurring: bool
                                                                                                                                                                                                                                                                                          durable: NotRequired[bool]
                                                                                                                                                                                                                                                                                          nextFireAt: NotRequired[float]
                                                                                                                                                                                                                                                                                          """Epoch ms of the job's next run, the scheduler's per-job offset included"""
                                                                                                                                                                                                                                                                                          maxAgeMs: NotRequired[float]
                                                                                                                                                                                                                                                                                          """Age at which a recurring job ends; 0 = never"""
                                                                                                                                                                                                                                                                                          otherOneShots: NotRequired[list[CronCreateOneShot]]
                                                                                                                                                                                                                                                                                          """Other session-only one-shot tasks that have yet to fire"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      maxAgeMs instance-attribute

                                                                                                                                                                                                                                                                                      maxAgeMs: NotRequired[float]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Age at which a recurring job ends; 0 = never

                                                                                                                                                                                                                                                                                      nextFireAt instance-attribute

                                                                                                                                                                                                                                                                                      nextFireAt: NotRequired[float]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the CronDelete tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class CronDeleteOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the CronDelete tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          endedLoopWakeup: NotRequired[Literal[True]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      CronListJob

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      job entry of CronList.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class CronListJob(TypedDict):
                                                                                                                                                                                                                                                                                          """``job`` entry of CronList."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          cron: str
                                                                                                                                                                                                                                                                                          humanSchedule: str
                                                                                                                                                                                                                                                                                          prompt: str
                                                                                                                                                                                                                                                                                          recurring: NotRequired[bool]
                                                                                                                                                                                                                                                                                          durable: NotRequired[bool]
                                                                                                                                                                                                                                                                                          nextFireAt: NotRequired[float]
                                                                                                                                                                                                                                                                                          """Epoch ms of the job's next run, the scheduler's per-job offset included"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      nextFireAt instance-attribute

                                                                                                                                                                                                                                                                                      nextFireAt: NotRequired[float]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Epoch ms of the job's next run, the scheduler's per-job offset included

                                                                                                                                                                                                                                                                                      CronListOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the CronList tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class CronListOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the CronList tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          jobs: list[CronListJob]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      EditOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Edit tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class EditOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Edit tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          filePath: str
                                                                                                                                                                                                                                                                                          oldString: str
                                                                                                                                                                                                                                                                                          newString: str
                                                                                                                                                                                                                                                                                          originalFile: str | None
                                                                                                                                                                                                                                                                                          structuredPatch: list[StructuredPatchHunk]
                                                                                                                                                                                                                                                                                          userModified: bool
                                                                                                                                                                                                                                                                                          replaceAll: bool
                                                                                                                                                                                                                                                                                          gitDiff: NotRequired[GitDiff]
                                                                                                                                                                                                                                                                                          staged: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the edit was staged instead of written."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      staged instance-attribute

                                                                                                                                                                                                                                                                                      staged: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class EnterPlanModeOutput(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.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          message: str
                                                                                                                                                                                                                                                                                          """A message indicating that plan mode was entered."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      message instance-attribute

                                                                                                                                                                                                                                                                                      message: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      A message indicating that plan mode was entered.

                                                                                                                                                                                                                                                                                      EnterWorktreeOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the EnterWorktree tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class EnterWorktreeOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the EnterWorktree tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          worktreePath: str
                                                                                                                                                                                                                                                                                          """The path to the worktree."""
                                                                                                                                                                                                                                                                                          worktreeBranch: NotRequired[str]
                                                                                                                                                                                                                                                                                          """The branch of the worktree."""
                                                                                                                                                                                                                                                                                          message: str
                                                                                                                                                                                                                                                                                          """A message indicating the result of the operation."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      message instance-attribute

                                                                                                                                                                                                                                                                                      message: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      A message indicating the result of the operation.

                                                                                                                                                                                                                                                                                      worktreeBranch instance-attribute

                                                                                                                                                                                                                                                                                      worktreeBranch: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The branch of the worktree.

                                                                                                                                                                                                                                                                                      worktreePath instance-attribute

                                                                                                                                                                                                                                                                                      worktreePath: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The path to the worktree.

                                                                                                                                                                                                                                                                                      ExitPlanModeOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the ExitPlanMode tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ExitPlanModeOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the ExitPlanMode tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          plan: str | None
                                                                                                                                                                                                                                                                                          """The plan that was presented to the user."""
                                                                                                                                                                                                                                                                                          isAgent: bool
                                                                                                                                                                                                                                                                                          filePath: NotRequired[str]
                                                                                                                                                                                                                                                                                          """The file path where the plan was saved."""
                                                                                                                                                                                                                                                                                          hasTaskTool: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the Task tool is available in the current context."""
                                                                                                                                                                                                                                                                                          planWasEdited: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the plan was edited by the user."""
                                                                                                                                                                                                                                                                                          awaitingLeaderApproval: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """When true, the teammate has sent a plan approval request to the team leader."""
                                                                                                                                                                                                                                                                                          requestId: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Unique identifier for the plan approval request."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      awaitingLeaderApproval instance-attribute

                                                                                                                                                                                                                                                                                      awaitingLeaderApproval: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      When true, the teammate has sent a plan approval request to the team leader.

                                                                                                                                                                                                                                                                                      filePath instance-attribute

                                                                                                                                                                                                                                                                                      filePath: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The file path where the plan was saved.

                                                                                                                                                                                                                                                                                      hasTaskTool instance-attribute

                                                                                                                                                                                                                                                                                      hasTaskTool: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the Task tool is available in the current context.

                                                                                                                                                                                                                                                                                      plan instance-attribute

                                                                                                                                                                                                                                                                                      plan: str | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The plan that was presented to the user.

                                                                                                                                                                                                                                                                                      planWasEdited instance-attribute

                                                                                                                                                                                                                                                                                      planWasEdited: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the plan was edited by the user.

                                                                                                                                                                                                                                                                                      requestId instance-attribute

                                                                                                                                                                                                                                                                                      requestId: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class ExitWorktreeOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the ExitWorktree tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          action: Literal["keep", "remove"]
                                                                                                                                                                                                                                                                                          """The action that was taken."""
                                                                                                                                                                                                                                                                                          originalCwd: str
                                                                                                                                                                                                                                                                                          """The original working directory before the worktree was entered."""
                                                                                                                                                                                                                                                                                          worktreePath: str
                                                                                                                                                                                                                                                                                          """The path to the worktree."""
                                                                                                                                                                                                                                                                                          worktreeBranch: NotRequired[str]
                                                                                                                                                                                                                                                                                          """The branch of the worktree."""
                                                                                                                                                                                                                                                                                          tmuxSessionName: NotRequired[str]
                                                                                                                                                                                                                                                                                          """The tmux session name if applicable."""
                                                                                                                                                                                                                                                                                          discardedFiles: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of files discarded."""
                                                                                                                                                                                                                                                                                          discardedCommits: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of commits discarded."""
                                                                                                                                                                                                                                                                                          message: str
                                                                                                                                                                                                                                                                                          """A message indicating the result of the operation."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      action instance-attribute

                                                                                                                                                                                                                                                                                      action: Literal['keep', 'remove']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The action that was taken.

                                                                                                                                                                                                                                                                                      discardedCommits instance-attribute

                                                                                                                                                                                                                                                                                      discardedCommits: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of commits discarded.

                                                                                                                                                                                                                                                                                      discardedFiles instance-attribute

                                                                                                                                                                                                                                                                                      discardedFiles: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of files discarded.

                                                                                                                                                                                                                                                                                      message instance-attribute

                                                                                                                                                                                                                                                                                      message: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      A message indicating the result of the operation.

                                                                                                                                                                                                                                                                                      originalCwd instance-attribute

                                                                                                                                                                                                                                                                                      originalCwd: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The original working directory before the worktree was entered.

                                                                                                                                                                                                                                                                                      tmuxSessionName instance-attribute

                                                                                                                                                                                                                                                                                      tmuxSessionName: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The tmux session name if applicable.

                                                                                                                                                                                                                                                                                      worktreeBranch instance-attribute

                                                                                                                                                                                                                                                                                      worktreeBranch: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The branch of the worktree.

                                                                                                                                                                                                                                                                                      worktreePath instance-attribute

                                                                                                                                                                                                                                                                                      worktreePath: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The path to the worktree.

                                                                                                                                                                                                                                                                                      FileUnchangedOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Read tool output when the file has not changed.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class FileUnchangedOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Read tool output when the file has not changed."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["file_unchanged"]
                                                                                                                                                                                                                                                                                          filePath: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      GitDiff

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Git diff information for a file change.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class GitDiff(TypedDict):
                                                                                                                                                                                                                                                                                          """Git diff information for a file change."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          filename: str
                                                                                                                                                                                                                                                                                          status: Literal["modified", "added"]
                                                                                                                                                                                                                                                                                          additions: int
                                                                                                                                                                                                                                                                                          deletions: int
                                                                                                                                                                                                                                                                                          changes: int
                                                                                                                                                                                                                                                                                          patch: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      GlobOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Glob tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class GlobOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Glob tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          durationMs: int
                                                                                                                                                                                                                                                                                          numFiles: int
                                                                                                                                                                                                                                                                                          filenames: list[str]
                                                                                                                                                                                                                                                                                          truncated: bool
                                                                                                                                                                                                                                                                                          """Whether results were truncated (limited to 100 files)."""
                                                                                                                                                                                                                                                                                          totalMatches: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Total matches before truncation (a lower bound when countIsComplete is false)."""
                                                                                                                                                                                                                                                                                          countIsComplete: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether totalMatches is exact."""
                                                                                                                                                                                                                                                                                          timedOut: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the search timed out (results may be partial)."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      countIsComplete instance-attribute

                                                                                                                                                                                                                                                                                      countIsComplete: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether totalMatches is exact.

                                                                                                                                                                                                                                                                                      timedOut instance-attribute

                                                                                                                                                                                                                                                                                      timedOut: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the search timed out (results may be partial).

                                                                                                                                                                                                                                                                                      totalMatches instance-attribute

                                                                                                                                                                                                                                                                                      totalMatches: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Total matches before truncation (a lower bound when countIsComplete is false).

                                                                                                                                                                                                                                                                                      truncated instance-attribute

                                                                                                                                                                                                                                                                                      truncated: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class GrepOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Grep tool (all modes)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          mode: NotRequired[Literal["content", "files_with_matches", "count"]]
                                                                                                                                                                                                                                                                                          numFiles: int
                                                                                                                                                                                                                                                                                          filenames: list[str]
                                                                                                                                                                                                                                                                                          content: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Matching lines (content mode)."""
                                                                                                                                                                                                                                                                                          numLines: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of matching lines (content mode)."""
                                                                                                                                                                                                                                                                                          numMatches: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of matches (count mode)."""
                                                                                                                                                                                                                                                                                          appliedLimit: NotRequired[int]
                                                                                                                                                                                                                                                                                          """The head_limit that was applied."""
                                                                                                                                                                                                                                                                                          appliedOffset: NotRequired[int]
                                                                                                                                                                                                                                                                                          """The offset that was applied."""
                                                                                                                                                                                                                                                                                          totalFiles: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Total matching files before pagination."""
                                                                                                                                                                                                                                                                                          totalLines: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Total matching lines before pagination."""
                                                                                                                                                                                                                                                                                          timedOut: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the search timed out (results may be partial)."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      appliedLimit instance-attribute

                                                                                                                                                                                                                                                                                      appliedLimit: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The head_limit that was applied.

                                                                                                                                                                                                                                                                                      appliedOffset instance-attribute

                                                                                                                                                                                                                                                                                      appliedOffset: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The offset that was applied.

                                                                                                                                                                                                                                                                                      content instance-attribute

                                                                                                                                                                                                                                                                                      content: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Matching lines (content mode).

                                                                                                                                                                                                                                                                                      numLines instance-attribute

                                                                                                                                                                                                                                                                                      numLines: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of matching lines (content mode).

                                                                                                                                                                                                                                                                                      numMatches instance-attribute

                                                                                                                                                                                                                                                                                      numMatches: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of matches (count mode).

                                                                                                                                                                                                                                                                                      timedOut instance-attribute

                                                                                                                                                                                                                                                                                      timedOut: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the search timed out (results may be partial).

                                                                                                                                                                                                                                                                                      totalFiles instance-attribute

                                                                                                                                                                                                                                                                                      totalFiles: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Total matching files before pagination.

                                                                                                                                                                                                                                                                                      totalLines instance-attribute

                                                                                                                                                                                                                                                                                      totalLines: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Total matching lines before pagination.

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class KillShellOutput(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
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          message: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Status message."""
                                                                                                                                                                                                                                                                                          shell_id: NotRequired[str]
                                                                                                                                                                                                                                                                                          """ID of the shell that was killed."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      message instance-attribute

                                                                                                                                                                                                                                                                                      message: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Status message.

                                                                                                                                                                                                                                                                                      shell_id instance-attribute

                                                                                                                                                                                                                                                                                      shell_id: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ID of the shell that was killed.

                                                                                                                                                                                                                                                                                      McpResourceEntry

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A single MCP resource entry.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class McpResourceEntry(TypedDict):
                                                                                                                                                                                                                                                                                          """A single MCP resource entry."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          uri: str
                                                                                                                                                                                                                                                                                          """Resource URI."""
                                                                                                                                                                                                                                                                                          name: str
                                                                                                                                                                                                                                                                                          """Resource name."""
                                                                                                                                                                                                                                                                                          description: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Resource description."""
                                                                                                                                                                                                                                                                                          mimeType: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Resource MIME type."""
                                                                                                                                                                                                                                                                                          server: str
                                                                                                                                                                                                                                                                                          """Server providing this resource."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      description instance-attribute

                                                                                                                                                                                                                                                                                      description: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Resource description.

                                                                                                                                                                                                                                                                                      mimeType instance-attribute

                                                                                                                                                                                                                                                                                      mimeType: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Resource MIME type.

                                                                                                                                                                                                                                                                                      name instance-attribute

                                                                                                                                                                                                                                                                                      name: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Resource name.

                                                                                                                                                                                                                                                                                      server instance-attribute

                                                                                                                                                                                                                                                                                      server: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Server providing this resource.

                                                                                                                                                                                                                                                                                      uri instance-attribute

                                                                                                                                                                                                                                                                                      uri: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Resource URI.

                                                                                                                                                                                                                                                                                      MonitorOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the Monitor tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class MonitorOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the Monitor tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          taskId: str
                                                                                                                                                                                                                                                                                          """ID of the background monitor task."""
                                                                                                                                                                                                                                                                                          timeoutMs: float
                                                                                                                                                                                                                                                                                          """Timeout deadline in milliseconds (0 when persistent)."""
                                                                                                                                                                                                                                                                                          persistent: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """No timeout — runs until TaskStop or session end."""
                                                                                                                                                                                                                                                                                          keptInSandboxByCheck: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """True when the command ran in the sandbox only because its permission check relied on
                                                                                                                                                                                                                                                                                          the sandbox; the settings would otherwise have exempted it."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      keptInSandboxByCheck instance-attribute

                                                                                                                                                                                                                                                                                      keptInSandboxByCheck: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      persistent: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      No timeout — runs until TaskStop or session end.

                                                                                                                                                                                                                                                                                      taskId instance-attribute

                                                                                                                                                                                                                                                                                      taskId: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ID of the background monitor task.

                                                                                                                                                                                                                                                                                      timeoutMs instance-attribute

                                                                                                                                                                                                                                                                                      timeoutMs: float
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class NotebookEditOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the NotebookEdit tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          new_source: str
                                                                                                                                                                                                                                                                                          cell_id: NotRequired[str]
                                                                                                                                                                                                                                                                                          cell_type: Literal["code", "markdown"]
                                                                                                                                                                                                                                                                                          language: str
                                                                                                                                                                                                                                                                                          edit_mode: str
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                          notebook_path: str
                                                                                                                                                                                                                                                                                          original_file: str
                                                                                                                                                                                                                                                                                          """The original notebook content before modification."""
                                                                                                                                                                                                                                                                                          updated_file: str
                                                                                                                                                                                                                                                                                          """The updated notebook content after modification."""
                                                                                                                                                                                                                                                                                          old_source: NotRequired[str]
                                                                                                                                                                                                                                                                                          """The original source of the cell before the edit."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      old_source instance-attribute

                                                                                                                                                                                                                                                                                      old_source: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The original source of the cell before the edit.

                                                                                                                                                                                                                                                                                      original_file instance-attribute

                                                                                                                                                                                                                                                                                      original_file: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The original notebook content before modification.

                                                                                                                                                                                                                                                                                      updated_file instance-attribute

                                                                                                                                                                                                                                                                                      updated_file: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The updated notebook content after modification.

                                                                                                                                                                                                                                                                                      OfferChromeSetupOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the OfferChromeSetup tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class OfferChromeSetupOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the OfferChromeSetup tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          outcome: Literal["connected", "not_now", "no_attempt_yet"]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectDeleteOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Projects tool output (ProjectDelete variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectDeleteOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Projects tool output (ProjectDelete variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          method: Literal["project_delete"]
                                                                                                                                                                                                                                                                                          notice: NotRequired[str]
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          deleted: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectInfoDoc

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      doc entry of ProjectsProjectInfo.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectInfoDoc(TypedDict):
                                                                                                                                                                                                                                                                                          """``doc`` entry of ProjectsProjectInfo."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          created_at: str | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectInfoFile

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      file entry of ProjectsProjectInfo.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectInfoFile(TypedDict):
                                                                                                                                                                                                                                                                                          """``file`` entry of ProjectsProjectInfo."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          file_kind: str
                                                                                                                                                                                                                                                                                          created_at: str | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectInfoKnowledge

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      knowledge entry of ProjectsProjectInfo.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectInfoKnowledge(TypedDict):
                                                                                                                                                                                                                                                                                          """``knowledge`` entry of ProjectsProjectInfo."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          knowledge_size: int
                                                                                                                                                                                                                                                                                          max_knowledge_size: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectInfoOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Projects tool output (ProjectInfo variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectInfoOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Projects tool output (ProjectInfo variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          method: Literal["project_info"]
                                                                                                                                                                                                                                                                                          notice: NotRequired[str]
                                                                                                                                                                                                                                                                                          local_file: NotRequired[str]
                                                                                                                                                                                                                                                                                          name: str
                                                                                                                                                                                                                                                                                          description: str
                                                                                                                                                                                                                                                                                          instructions: str
                                                                                                                                                                                                                                                                                          docs: list[ProjectsProjectInfoDoc]
                                                                                                                                                                                                                                                                                          files: NotRequired[list[ProjectsProjectInfoFile]]
                                                                                                                                                                                                                                                                                          sync_sources: NotRequired[list[ProjectsProjectInfoSyncSource]]
                                                                                                                                                                                                                                                                                          knowledge: ProjectsProjectInfoKnowledge
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectInfoSyncSource

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      sync_source entry of ProjectsProjectInfo.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectInfoSyncSource(TypedDict):
                                                                                                                                                                                                                                                                                          """``sync_source`` entry of ProjectsProjectInfo."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: str | None
                                                                                                                                                                                                                                                                                          config: dict[str, Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectMemoryListFile

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      file entry of ProjectsProjectMemoryList.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectMemoryListFile(TypedDict):
                                                                                                                                                                                                                                                                                          """``file`` entry of ProjectsProjectMemoryList."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          size_bytes: int
                                                                                                                                                                                                                                                                                          updated_at: str | None
                                                                                                                                                                                                                                                                                          truncated: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectMemoryListOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Projects tool output (ProjectMemoryList variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectMemoryListOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Projects tool output (ProjectMemoryList variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          method: Literal["project_memory_list"]
                                                                                                                                                                                                                                                                                          notice: NotRequired[str]
                                                                                                                                                                                                                                                                                          files: list[ProjectsProjectMemoryListFile]
                                                                                                                                                                                                                                                                                          truncated: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectMemoryReadOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Projects tool output (ProjectMemoryRead variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectMemoryReadOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Projects tool output (ProjectMemoryRead variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          method: Literal["project_memory_read"]
                                                                                                                                                                                                                                                                                          notice: NotRequired[str]
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          content: NotRequired[str]
                                                                                                                                                                                                                                                                                          local_file: NotRequired[str]
                                                                                                                                                                                                                                                                                          size_bytes: int
                                                                                                                                                                                                                                                                                          updated_at: str | None
                                                                                                                                                                                                                                                                                          truncated: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectReadOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Projects tool output (ProjectRead variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectReadOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Projects tool output (ProjectRead variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          method: Literal["project_read"]
                                                                                                                                                                                                                                                                                          notice: NotRequired[str]
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          file_kind: NotRequired[str]
                                                                                                                                                                                                                                                                                          content: NotRequired[str]
                                                                                                                                                                                                                                                                                          local_file: NotRequired[str]
                                                                                                                                                                                                                                                                                          created_at: str | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectSearchHit

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      hit entry of ProjectsProjectSearch.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectSearchHit(TypedDict):
                                                                                                                                                                                                                                                                                          """``hit`` entry of ProjectsProjectSearch."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          name: NotRequired[str]
                                                                                                                                                                                                                                                                                          doc_uuid: NotRequired[str]
                                                                                                                                                                                                                                                                                          text: NotRequired[str]
                                                                                                                                                                                                                                                                                          image_attached: NotRequired[bool]
                                                                                                                                                                                                                                                                                          page: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectSearchOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Projects tool output (ProjectSearch variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectSearchOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Projects tool output (ProjectSearch variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          method: Literal["project_search"]
                                                                                                                                                                                                                                                                                          notice: NotRequired[str]
                                                                                                                                                                                                                                                                                          rag: bool
                                                                                                                                                                                                                                                                                          hits: NotRequired[list[ProjectsProjectSearchHit]]
                                                                                                                                                                                                                                                                                          docs: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProjectsProjectWriteOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Projects tool output (ProjectWrite variant).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProjectsProjectWriteOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Projects tool output (ProjectWrite variant)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          method: Literal["project_write"]
                                                                                                                                                                                                                                                                                          notice: NotRequired[str]
                                                                                                                                                                                                                                                                                          path: str
                                                                                                                                                                                                                                                                                          doc_uuid: str
                                                                                                                                                                                                                                                                                          replaced: bool
                                                                                                                                                                                                                                                                                          present_to_user: NotRequired[bool]
                                                                                                                                                                                                                                                                                          local_path: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ProposeGoalOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ProposeGoal tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProposeGoalOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ProposeGoal tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          condition: str
                                                                                                                                                                                                                                                                                          """The condition shown to the user for approval, or set directly when ask_user was false"""
                                                                                                                                                                                                                                                                                          askUser: bool
                                                                                                                                                                                                                                                                                          """Whether the user was asked for approval (true) or the goal was set directly (false)"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      askUser instance-attribute

                                                                                                                                                                                                                                                                                      askUser: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the user was asked for approval (true) or the goal was set directly (false)

                                                                                                                                                                                                                                                                                      condition instance-attribute

                                                                                                                                                                                                                                                                                      condition: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The condition shown to the user for approval, or set directly when ask_user was false

                                                                                                                                                                                                                                                                                      ProposeSkillsOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ProposeSkills tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ProposeSkillsOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ProposeSkills tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          proposalCount: int
                                                                                                                                                                                                                                                                                          """Number of proposals shown on the review card"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      proposalCount instance-attribute

                                                                                                                                                                                                                                                                                      proposalCount: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of proposals shown on the review card

                                                                                                                                                                                                                                                                                      PushNotificationOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the PushNotification tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class PushNotificationOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the PushNotification tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          message: str
                                                                                                                                                                                                                                                                                          pushSent: NotRequired[bool]
                                                                                                                                                                                                                                                                                          localSent: NotRequired[bool]
                                                                                                                                                                                                                                                                                          disabledReason: NotRequired[Literal["config_off", "user_present", "no_transport"]]
                                                                                                                                                                                                                                                                                          sentAt: NotRequired[str]
                                                                                                                                                                                                                                                                                          """ISO timestamp captured at tool execution on the emitting process.
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          Optional — resumed sessions replay pre-sentAt outputs verbatim.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      sentAt instance-attribute

                                                                                                                                                                                                                                                                                      sentAt: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class ReadFileInfo(TypedDict):
                                                                                                                                                                                                                                                                                          """Nested file info inside a Read tool result (text mode)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          filePath: str
                                                                                                                                                                                                                                                                                          """The path to the file that was read."""
                                                                                                                                                                                                                                                                                          content: str
                                                                                                                                                                                                                                                                                          """The read content of the file."""
                                                                                                                                                                                                                                                                                          numLines: int
                                                                                                                                                                                                                                                                                          """The number of lines read."""
                                                                                                                                                                                                                                                                                          startLine: int
                                                                                                                                                                                                                                                                                          """The line number where reading started from."""
                                                                                                                                                                                                                                                                                          totalLines: int
                                                                                                                                                                                                                                                                                          """The total number of lines in the file."""
                                                                                                                                                                                                                                                                                          # resultWasTruncated: NotRequired[bool]
                                                                                                                                                                                                                                                                                          # """Whether the result was truncated due to the maximum token limit."""
                                                                                                                                                                                                                                                                                          truncatedByTokenCap: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """True when a whole-file read was auto-paginated because it exceeded the token cap."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      content instance-attribute

                                                                                                                                                                                                                                                                                      content: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The read content of the file.

                                                                                                                                                                                                                                                                                      filePath instance-attribute

                                                                                                                                                                                                                                                                                      filePath: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The path to the file that was read.

                                                                                                                                                                                                                                                                                      numLines instance-attribute

                                                                                                                                                                                                                                                                                      numLines: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The number of lines read.

                                                                                                                                                                                                                                                                                      startLine instance-attribute

                                                                                                                                                                                                                                                                                      startLine: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The line number where reading started from.

                                                                                                                                                                                                                                                                                      totalLines instance-attribute

                                                                                                                                                                                                                                                                                      totalLines: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The total number of lines in the file.

                                                                                                                                                                                                                                                                                      truncatedByTokenCap instance-attribute

                                                                                                                                                                                                                                                                                      truncatedByTokenCap: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class ReadImageDimensions(TypedDict):
                                                                                                                                                                                                                                                                                          """Image dimension info for coordinate mapping."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          originalWidth: NotRequired[int]
                                                                                                                                                                                                                                                                                          originalHeight: NotRequired[int]
                                                                                                                                                                                                                                                                                          displayWidth: NotRequired[int]
                                                                                                                                                                                                                                                                                          displayHeight: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ReadImageFileInfo

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Nested file info for image reads.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadImageFileInfo(TypedDict):
                                                                                                                                                                                                                                                                                          """Nested file info for image reads."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          base64: str
                                                                                                                                                                                                                                                                                          """Base64-encoded image data."""
                                                                                                                                                                                                                                                                                          type: MimeType
                                                                                                                                                                                                                                                                                          """The MIME type of the image."""
                                                                                                                                                                                                                                                                                          originalSize: int
                                                                                                                                                                                                                                                                                          """Original file size in bytes."""
                                                                                                                                                                                                                                                                                          dimensions: NotRequired[ReadImageDimensions]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      base64 instance-attribute

                                                                                                                                                                                                                                                                                      base64: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Base64-encoded image data.

                                                                                                                                                                                                                                                                                      originalSize instance-attribute

                                                                                                                                                                                                                                                                                      originalSize: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Original file size in bytes.

                                                                                                                                                                                                                                                                                      type instance-attribute

                                                                                                                                                                                                                                                                                      type: MimeType
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The MIME type of the image.

                                                                                                                                                                                                                                                                                      ReadImageOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Read tool (image files).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadImageOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Read tool (image files)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["image"]
                                                                                                                                                                                                                                                                                          file: ReadImageFileInfo
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ReadMcpResourceContentItem

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A single content item from an MCP resource.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadMcpResourceContentItem(TypedDict):
                                                                                                                                                                                                                                                                                          """A single content item from an MCP resource."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          uri: str
                                                                                                                                                                                                                                                                                          """Resource URI."""
                                                                                                                                                                                                                                                                                          mimeType: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Content MIME type."""
                                                                                                                                                                                                                                                                                          text: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Text content."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      mimeType instance-attribute

                                                                                                                                                                                                                                                                                      mimeType: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Content MIME type.

                                                                                                                                                                                                                                                                                      text instance-attribute

                                                                                                                                                                                                                                                                                      text: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Text content.

                                                                                                                                                                                                                                                                                      uri instance-attribute

                                                                                                                                                                                                                                                                                      uri: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Resource URI.

                                                                                                                                                                                                                                                                                      ReadMcpResourceDirOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ReadMcpResourceDir tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadMcpResourceDirOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ReadMcpResourceDir tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          resources: list[ReadMcpResourceDirResource]
                                                                                                                                                                                                                                                                                          """Direct children of the directory resource.
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          Subdirectories appear with mimeType "inode/directory".
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Human-readable error when the server could not list the directory"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      error instance-attribute

                                                                                                                                                                                                                                                                                      error: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class ReadMcpResourceDirResource(TypedDict):
                                                                                                                                                                                                                                                                                          """``resource`` entry of ReadMcpResourceDir."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          uri: str
                                                                                                                                                                                                                                                                                          """Child resource URI"""
                                                                                                                                                                                                                                                                                          name: str
                                                                                                                                                                                                                                                                                          """Child resource name"""
                                                                                                                                                                                                                                                                                          mimeType: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Child MIME type"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      mimeType instance-attribute

                                                                                                                                                                                                                                                                                      mimeType: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Child MIME type

                                                                                                                                                                                                                                                                                      name instance-attribute

                                                                                                                                                                                                                                                                                      name: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Child resource name

                                                                                                                                                                                                                                                                                      uri instance-attribute

                                                                                                                                                                                                                                                                                      uri: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Child resource URI

                                                                                                                                                                                                                                                                                      ReadMcpResourceOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the ReadMcpResource tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadMcpResourceOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the ReadMcpResource tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          contents: list[ReadMcpResourceContentItem]
                                                                                                                                                                                                                                                                                          """Resource contents."""
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Error message when the resource could not be read."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      contents instance-attribute

                                                                                                                                                                                                                                                                                      Resource contents.

                                                                                                                                                                                                                                                                                      error instance-attribute

                                                                                                                                                                                                                                                                                      error: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Error message when the resource could not be read.

                                                                                                                                                                                                                                                                                      ReadNotebookFileInfo

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Nested file info for notebook reads.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadNotebookFileInfo(TypedDict):
                                                                                                                                                                                                                                                                                          """Nested file info for notebook reads."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          filePath: str
                                                                                                                                                                                                                                                                                          cells: list[Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ReadNotebookOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Read tool (Jupyter notebooks).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadNotebookOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Read tool (Jupyter notebooks)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["notebook"]
                                                                                                                                                                                                                                                                                          file: ReadNotebookFileInfo
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ReadNotificationsNotification

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      notification entry of ReadNotifications.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadNotificationsNotification(TypedDict):
                                                                                                                                                                                                                                                                                          """``notification`` entry of ReadNotifications."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          notification_id: str
                                                                                                                                                                                                                                                                                          """Server-assigned stable id — the dedup key across redeliveries."""
                                                                                                                                                                                                                                                                                          origin: str
                                                                                                                                                                                                                                                                                          """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").
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                          queued_at: str
                                                                                                                                                                                                                                                                                          """RFC3339 timestamp of when the backend queued it."""
                                                                                                                                                                                                                                                                                          content: str
                                                                                                                                                                                                                                                                                          """Verbatim notification body."""
                                                                                                                                                                                                                                                                                          arrived_at: NotRequired[str]
                                                                                                                                                                                                                                                                                          """RFC3339 timestamp, by this machine's clock, of when the notification reached this session's
                                                                                                                                                                                                                                                                                          queue.
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          Missing from results saved before this field existed.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      arrived_at instance-attribute

                                                                                                                                                                                                                                                                                      arrived_at: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      RFC3339 timestamp, by this machine's clock, of when the notification reached this session's queue.

                                                                                                                                                                                                                                                                                      Missing from results saved before this field existed.

                                                                                                                                                                                                                                                                                      content instance-attribute

                                                                                                                                                                                                                                                                                      content: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Verbatim notification body.

                                                                                                                                                                                                                                                                                      notification_id instance-attribute

                                                                                                                                                                                                                                                                                      notification_id: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Server-assigned stable id — the dedup key across redeliveries.

                                                                                                                                                                                                                                                                                      origin instance-attribute

                                                                                                                                                                                                                                                                                      origin: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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").

                                                                                                                                                                                                                                                                                      queued_at instance-attribute

                                                                                                                                                                                                                                                                                      queued_at: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      RFC3339 timestamp of when the backend queued it.

                                                                                                                                                                                                                                                                                      ReadNotificationsOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ReadNotifications tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadNotificationsOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ReadNotifications tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          notifications: list[ReadNotificationsNotification]
                                                                                                                                                                                                                                                                                          remaining: float
                                                                                                                                                                                                                                                                                          """Notifications still queued after this drain (drains are size-budgeted); call the tool again
                                                                                                                                                                                                                                                                                          to read them.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                          read_at: NotRequired[str]
                                                                                                                                                                                                                                                                                          """RFC3339 timestamp, by this machine's clock, of when this call read the queue.
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          Missing from results saved before this field existed.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      read_at instance-attribute

                                                                                                                                                                                                                                                                                      read_at: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      RFC3339 timestamp, by this machine's clock, of when this call read the queue.

                                                                                                                                                                                                                                                                                      Missing from results saved before this field existed.

                                                                                                                                                                                                                                                                                      remaining instance-attribute

                                                                                                                                                                                                                                                                                      remaining: float
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Notifications still queued after this drain (drains are size-budgeted); call the tool again to read them.

                                                                                                                                                                                                                                                                                      ReadPartsFileInfo

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Nested file info for PDF parts (extracted page images).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadPartsFileInfo(TypedDict):
                                                                                                                                                                                                                                                                                          """Nested file info for PDF parts (extracted page images)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          filePath: str
                                                                                                                                                                                                                                                                                          originalSize: int
                                                                                                                                                                                                                                                                                          count: int
                                                                                                                                                                                                                                                                                          """Number of pages extracted."""
                                                                                                                                                                                                                                                                                          outputDir: str
                                                                                                                                                                                                                                                                                          """Directory containing extracted page images."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      count instance-attribute

                                                                                                                                                                                                                                                                                      count: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of pages extracted.

                                                                                                                                                                                                                                                                                      outputDir instance-attribute

                                                                                                                                                                                                                                                                                      outputDir: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Directory containing extracted page images.

                                                                                                                                                                                                                                                                                      ReadPartsOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Read tool (PDF parts extraction).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadPartsOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Read tool (PDF parts extraction)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["parts"]
                                                                                                                                                                                                                                                                                          file: ReadPartsFileInfo
                                                                                                                                                                                                                                                                                          firstPage: NotRequired[int]
                                                                                                                                                                                                                                                                                          """First page number included as page images in the model-facing tool_result."""
                                                                                                                                                                                                                                                                                          pages: NotRequired[list[ReadPartsPage]]
                                                                                                                                                                                                                                                                                          """Page images (only present transiently in-process, absent on emitted results)."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      firstPage instance-attribute

                                                                                                                                                                                                                                                                                      firstPage: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A rendered page image of a document read in parts.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadPartsPage(TypedDict):
                                                                                                                                                                                                                                                                                          """A rendered page image of a document read in parts."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          base64: str
                                                                                                                                                                                                                                                                                          mediaType: MimeType
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ReadPdfFileInfo

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Nested file info for PDF reads.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadPdfFileInfo(TypedDict):
                                                                                                                                                                                                                                                                                          """Nested file info for PDF reads."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          filePath: str
                                                                                                                                                                                                                                                                                          base64: str
                                                                                                                                                                                                                                                                                          """Base64-encoded PDF data."""
                                                                                                                                                                                                                                                                                          originalSize: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      base64 instance-attribute

                                                                                                                                                                                                                                                                                      base64: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Base64-encoded PDF data.

                                                                                                                                                                                                                                                                                      ReadPdfOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Read tool (PDF files).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadPdfOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Read tool (PDF files)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["pdf"]
                                                                                                                                                                                                                                                                                          file: ReadPdfFileInfo
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ReadTextOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the Read tool (text files).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReadTextOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Read tool (text files)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["text"]
                                                                                                                                                                                                                                                                                          file: ReadFileInfo
                                                                                                                                                                                                                                                                                          artifactRead: NotRequired[ArtifactReadMarker]
                                                                                                                                                                                                                                                                                          """Set when the read file is an artifact that now counts as viewed."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class RefreshMcpTools(TypedDict):
                                                                                                                                                                                                                                                                                          """```` entry of RefreshMcpTools."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          server: str
                                                                                                                                                                                                                                                                                          """Server name"""
                                                                                                                                                                                                                                                                                          status: Literal["refreshed", "error", "not_connected"]
                                                                                                                                                                                                                                                                                          """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: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of tools now available from this server"""
                                                                                                                                                                                                                                                                                          added: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                          """Tool names this refresh added"""
                                                                                                                                                                                                                                                                                          removed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                          """Tool names this refresh removed"""
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Why the refresh failed or the server was unavailable"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      added instance-attribute

                                                                                                                                                                                                                                                                                      added: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tool names this refresh added

                                                                                                                                                                                                                                                                                      error instance-attribute

                                                                                                                                                                                                                                                                                      error: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Why the refresh failed or the server was unavailable

                                                                                                                                                                                                                                                                                      removed instance-attribute

                                                                                                                                                                                                                                                                                      removed: NotRequired[list[str]]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tool names this refresh removed

                                                                                                                                                                                                                                                                                      server instance-attribute

                                                                                                                                                                                                                                                                                      server: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Server name

                                                                                                                                                                                                                                                                                      status instance-attribute

                                                                                                                                                                                                                                                                                      status: Literal['refreshed', 'error', 'not_connected']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      toolCount: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of tools now available from this server

                                                                                                                                                                                                                                                                                      RemoteTriggerOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the RemoteTrigger tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class RemoteTriggerOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the RemoteTrigger tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          status: int
                                                                                                                                                                                                                                                                                          json: str
                                                                                                                                                                                                                                                                                          summary: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ReportFindingsOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ReportFindings tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ReportFindingsOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ReportFindings tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          count: int
                                                                                                                                                                                                                                                                                          """Number of findings reported"""
                                                                                                                                                                                                                                                                                          level: NotRequired[Literal["low", "medium", "high", "xhigh", "max"]]
                                                                                                                                                                                                                                                                                          """Effort level the review ran at"""
                                                                                                                                                                                                                                                                                          findings: list[ReportFindingsFinding]
                                                                                                                                                                                                                                                                                          """Echoed for the result body"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      count instance-attribute

                                                                                                                                                                                                                                                                                      count: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of findings reported

                                                                                                                                                                                                                                                                                      findings instance-attribute

                                                                                                                                                                                                                                                                                      findings: list[ReportFindingsFinding]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Echoed for the result body

                                                                                                                                                                                                                                                                                      level instance-attribute

                                                                                                                                                                                                                                                                                      level: NotRequired[Literal['low', 'medium', 'high', 'xhigh', 'max']]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class SDKDeferredToolUse(TypedDict):
                                                                                                                                                                                                                                                                                          """A deferred tool use from a completed agent result."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          """Tool use ID."""
                                                                                                                                                                                                                                                                                          name: str
                                                                                                                                                                                                                                                                                          """Tool name."""
                                                                                                                                                                                                                                                                                          input: dict[str, Any]
                                                                                                                                                                                                                                                                                          """Tool input parameters."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      id instance-attribute

                                                                                                                                                                                                                                                                                      id: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tool use ID.

                                                                                                                                                                                                                                                                                      input instance-attribute

                                                                                                                                                                                                                                                                                      input: dict[str, Any]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tool input parameters.

                                                                                                                                                                                                                                                                                      name instance-attribute

                                                                                                                                                                                                                                                                                      name: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tool name.

                                                                                                                                                                                                                                                                                      ScheduleWakeupOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ScheduleWakeup tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ScheduleWakeupOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ScheduleWakeup tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          scheduledFor: float
                                                                                                                                                                                                                                                                                          """Epoch ms timestamp when the next wakeup will fire"""
                                                                                                                                                                                                                                                                                          clampedDelaySeconds: float
                                                                                                                                                                                                                                                                                          """Actual delay used after clamping to runtime bounds"""
                                                                                                                                                                                                                                                                                          wasClamped: bool
                                                                                                                                                                                                                                                                                          """True if the requested delaySeconds was outside [60, 3600]"""
                                                                                                                                                                                                                                                                                          stopped: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """True when the model ended the loop via `stop: true`"""
                                                                                                                                                                                                                                                                                          cancelledWakeups: NotRequired[float]
                                                                                                                                                                                                                                                                                          """How many pending dynamic-loop wakeups stop:true cancelled.
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          0 means nothing was pending — a recurring /loop cron is not cancelled by stop:true.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      cancelledWakeups instance-attribute

                                                                                                                                                                                                                                                                                      cancelledWakeups: NotRequired[float]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      clampedDelaySeconds: float
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Actual delay used after clamping to runtime bounds

                                                                                                                                                                                                                                                                                      scheduledFor instance-attribute

                                                                                                                                                                                                                                                                                      scheduledFor: float
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Epoch ms timestamp when the next wakeup will fire

                                                                                                                                                                                                                                                                                      stopped instance-attribute

                                                                                                                                                                                                                                                                                      stopped: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      True when the model ended the loop via stop: true

                                                                                                                                                                                                                                                                                      wasClamped instance-attribute

                                                                                                                                                                                                                                                                                      wasClamped: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      True if the requested delaySeconds was outside [60, 3600]

                                                                                                                                                                                                                                                                                      SendFeedbackOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the SendFeedback tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class SendFeedbackOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the SendFeedback tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          success: bool
                                                                                                                                                                                                                                                                                          message: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ShowOnboardingRolePickerOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the ShowOnboardingRolePicker tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ShowOnboardingRolePickerOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the ShowOnboardingRolePicker tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          role: NotRequired[str]
                                                                                                                                                                                                                                                                                          dismissed: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class SkillOutput(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.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          success: bool
                                                                                                                                                                                                                                                                                          """Whether the skill was invoked successfully."""
                                                                                                                                                                                                                                                                                          commandName: str
                                                                                                                                                                                                                                                                                          """The name of the skill that was invoked."""
                                                                                                                                                                                                                                                                                          allowedTools: list[ToolName | str]
                                                                                                                                                                                                                                                                                          """Tools that the skill is allowed to use."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      allowedTools instance-attribute

                                                                                                                                                                                                                                                                                      allowedTools: list[ToolName | str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Tools that the skill is allowed to use.

                                                                                                                                                                                                                                                                                      commandName instance-attribute

                                                                                                                                                                                                                                                                                      commandName: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The name of the skill that was invoked.

                                                                                                                                                                                                                                                                                      success instance-attribute

                                                                                                                                                                                                                                                                                      success: bool
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the skill was invoked successfully.

                                                                                                                                                                                                                                                                                      StructuredPatchHunk

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A single hunk in a structured patch.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class StructuredPatchHunk(TypedDict):
                                                                                                                                                                                                                                                                                          """A single hunk in a structured patch."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          oldStart: int
                                                                                                                                                                                                                                                                                          oldLines: int
                                                                                                                                                                                                                                                                                          newStart: int
                                                                                                                                                                                                                                                                                          newLines: int
                                                                                                                                                                                                                                                                                          lines: list[str]
                                                                                                                                                                                                                                                                                          """Diff lines prefixed with ``' '`` (context), ``'+'`` (added), or ``'-'`` (removed)."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      lines instance-attribute

                                                                                                                                                                                                                                                                                      lines: list[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Diff lines prefixed with ' ' (context), '+' (added), or '-' (removed).

                                                                                                                                                                                                                                                                                      TaskCreateOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the TaskCreate tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskCreateOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the TaskCreate tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          task: TaskCreateTask
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TaskCreateTask

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      task entry of TaskCreate.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskCreateTask(TypedDict):
                                                                                                                                                                                                                                                                                          """``task`` entry of TaskCreate."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          subject: str
                                                                                                                                                                                                                                                                                          description: NotRequired[str]
                                                                                                                                                                                                                                                                                          """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.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      description instance-attribute

                                                                                                                                                                                                                                                                                      description: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the TaskGet tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskGetOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the TaskGet tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          task: TaskGetTask | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TaskGetTask

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      task entry of TaskGet.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskGetTask(TypedDict):
                                                                                                                                                                                                                                                                                          """``task`` entry of TaskGet."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          subject: str
                                                                                                                                                                                                                                                                                          description: str
                                                                                                                                                                                                                                                                                          status: Literal["pending", "in_progress", "completed"]
                                                                                                                                                                                                                                                                                          blocks: list[str]
                                                                                                                                                                                                                                                                                          blockedBy: list[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TaskInfo

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Information about a background task.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskInfo(TypedDict):
                                                                                                                                                                                                                                                                                          """Information about a background task."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          task_id: str
                                                                                                                                                                                                                                                                                          task_type: Literal["local_bash", "agent"]
                                                                                                                                                                                                                                                                                          status: Status
                                                                                                                                                                                                                                                                                          description: str
                                                                                                                                                                                                                                                                                          output: str
                                                                                                                                                                                                                                                                                          exitCode: int | None
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TaskListOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the TaskList tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskListOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the TaskList tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          tasks: list[TaskListTask]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TaskListTask

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      task entry of TaskList.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskListTask(TypedDict):
                                                                                                                                                                                                                                                                                          """``task`` entry of TaskList."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          id: str
                                                                                                                                                                                                                                                                                          subject: str
                                                                                                                                                                                                                                                                                          status: Literal["pending", "in_progress", "completed"]
                                                                                                                                                                                                                                                                                          owner: NotRequired[str]
                                                                                                                                                                                                                                                                                          blockedBy: list[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TaskOutputResult

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the TaskOutput tool (background task polling).

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskOutputResult(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the TaskOutput tool (background task polling)."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          retrieval_status: Literal["completed", "timeout", "running"]
                                                                                                                                                                                                                                                                                          """Status of the retrieval."""
                                                                                                                                                                                                                                                                                          task: TaskInfo
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      retrieval_status instance-attribute

                                                                                                                                                                                                                                                                                      retrieval_status: Literal['completed', 'timeout', 'running']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Status of the retrieval.

                                                                                                                                                                                                                                                                                      TaskStopOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the TaskStop tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskStopOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the TaskStop tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          message: str
                                                                                                                                                                                                                                                                                          task_id: str
                                                                                                                                                                                                                                                                                          task_type: str
                                                                                                                                                                                                                                                                                          command: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TaskUpdateOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the TaskUpdate tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TaskUpdateOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the TaskUpdate tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          success: bool
                                                                                                                                                                                                                                                                                          taskId: str
                                                                                                                                                                                                                                                                                          updatedFields: list[str]
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                          statusChange: NotRequired[TaskUpdateStatusChange]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      TodoWriteOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the TodoWrite tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class TodoWriteOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the TodoWrite tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          oldTodos: list[TodoItem]
                                                                                                                                                                                                                                                                                          newTodos: list[TodoItem]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      ToolReference

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A single tool reference returned by ToolSearch.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ToolReference(TypedDict):
                                                                                                                                                                                                                                                                                          """A single tool reference returned by ToolSearch."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["tool_reference"]
                                                                                                                                                                                                                                                                                          """Always 'tool_reference'."""
                                                                                                                                                                                                                                                                                          tool_name: str
                                                                                                                                                                                                                                                                                          """The fully qualified tool name."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      tool_name instance-attribute

                                                                                                                                                                                                                                                                                      tool_name: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      The fully qualified tool name.

                                                                                                                                                                                                                                                                                      type instance-attribute

                                                                                                                                                                                                                                                                                      type: Literal['tool_reference']
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Always 'tool_reference'.

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class ToolSearchOutput(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.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          references: list[ToolReference]
                                                                                                                                                                                                                                                                                          """Matched tool references."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      references instance-attribute

                                                                                                                                                                                                                                                                                      references: list[ToolReference]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Matched tool references.

                                                                                                                                                                                                                                                                                      ToolStats

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Tool usage statistics from an agent task.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class ToolStats(TypedDict):
                                                                                                                                                                                                                                                                                          """Tool usage statistics from an agent task."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          readCount: int
                                                                                                                                                                                                                                                                                          """Number of read tool calls."""
                                                                                                                                                                                                                                                                                          searchCount: int
                                                                                                                                                                                                                                                                                          """Number of search tool calls."""
                                                                                                                                                                                                                                                                                          bashCount: int
                                                                                                                                                                                                                                                                                          """Number of bash tool calls."""
                                                                                                                                                                                                                                                                                          editFileCount: int
                                                                                                                                                                                                                                                                                          """Number of edit file tool calls."""
                                                                                                                                                                                                                                                                                          linesAdded: int
                                                                                                                                                                                                                                                                                          """Number of lines added by edit file tool calls."""
                                                                                                                                                                                                                                                                                          linesRemoved: int
                                                                                                                                                                                                                                                                                          """Number of lines removed by edit file tool calls."""
                                                                                                                                                                                                                                                                                          otherToolCount: int
                                                                                                                                                                                                                                                                                          """Number of other tool calls."""
                                                                                                                                                                                                                                                                                          frameCount: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of frames."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      bashCount instance-attribute

                                                                                                                                                                                                                                                                                      bashCount: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of bash tool calls.

                                                                                                                                                                                                                                                                                      editFileCount instance-attribute

                                                                                                                                                                                                                                                                                      editFileCount: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of edit file tool calls.

                                                                                                                                                                                                                                                                                      frameCount instance-attribute

                                                                                                                                                                                                                                                                                      frameCount: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of frames.

                                                                                                                                                                                                                                                                                      linesAdded instance-attribute

                                                                                                                                                                                                                                                                                      linesAdded: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of lines added by edit file tool calls.

                                                                                                                                                                                                                                                                                      linesRemoved instance-attribute

                                                                                                                                                                                                                                                                                      linesRemoved: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of lines removed by edit file tool calls.

                                                                                                                                                                                                                                                                                      otherToolCount instance-attribute

                                                                                                                                                                                                                                                                                      otherToolCount: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of other tool calls.

                                                                                                                                                                                                                                                                                      readCount instance-attribute

                                                                                                                                                                                                                                                                                      readCount: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of read tool calls.

                                                                                                                                                                                                                                                                                      searchCount instance-attribute

                                                                                                                                                                                                                                                                                      searchCount: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of search tool calls.

                                                                                                                                                                                                                                                                                      WebFetchOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the WebFetch tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class WebFetchOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the WebFetch tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          bytes: int
                                                                                                                                                                                                                                                                                          """Size of the fetched content in bytes."""
                                                                                                                                                                                                                                                                                          code: int
                                                                                                                                                                                                                                                                                          """HTTP response code."""
                                                                                                                                                                                                                                                                                          codeText: str
                                                                                                                                                                                                                                                                                          """HTTP response code text."""
                                                                                                                                                                                                                                                                                          result: str
                                                                                                                                                                                                                                                                                          """Processed result from applying the prompt to the content."""
                                                                                                                                                                                                                                                                                          durationMs: int
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          artifactRead: NotRequired[ArtifactReadMarker]
                                                                                                                                                                                                                                                                                          """Set when the fetched URL is an artifact that now counts as viewed."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      artifactRead instance-attribute

                                                                                                                                                                                                                                                                                      artifactRead: NotRequired[ArtifactReadMarker]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Set when the fetched URL is an artifact that now counts as viewed.

                                                                                                                                                                                                                                                                                      bytes instance-attribute

                                                                                                                                                                                                                                                                                      bytes: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Size of the fetched content in bytes.

                                                                                                                                                                                                                                                                                      code instance-attribute

                                                                                                                                                                                                                                                                                      code: int
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      HTTP response code.

                                                                                                                                                                                                                                                                                      codeText instance-attribute

                                                                                                                                                                                                                                                                                      codeText: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      HTTP response code text.

                                                                                                                                                                                                                                                                                      result instance-attribute

                                                                                                                                                                                                                                                                                      result: str
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Processed result from applying the prompt to the content.

                                                                                                                                                                                                                                                                                      WebSearchHit

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A single search result hit.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class WebSearchHit(TypedDict):
                                                                                                                                                                                                                                                                                          """A single search result hit."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          title: str
                                                                                                                                                                                                                                                                                          url: str
                                                                                                                                                                                                                                                                                          snippet: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Snippet of the search hit."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      snippet instance-attribute

                                                                                                                                                                                                                                                                                      snippet: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Snippet of the search hit.

                                                                                                                                                                                                                                                                                      WebSearchOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      tool_use_result for the WebSearch tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class WebSearchOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the WebSearch tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          query: str
                                                                                                                                                                                                                                                                                          results: list[WebSearchToolResult | str]
                                                                                                                                                                                                                                                                                          """Search results and/or text commentary from the model."""
                                                                                                                                                                                                                                                                                          durationSeconds: float
                                                                                                                                                                                                                                                                                          searchCount: NotRequired[int]
                                                                                                                                                                                                                                                                                          """Number of searches performed."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      results instance-attribute

                                                                                                                                                                                                                                                                                      results: list[WebSearchToolResult | str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Search results and/or text commentary from the model.

                                                                                                                                                                                                                                                                                      searchCount instance-attribute

                                                                                                                                                                                                                                                                                      searchCount: NotRequired[int]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Number of searches performed.

                                                                                                                                                                                                                                                                                      WebSearchToolResult

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      A structured search result entry.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class WebSearchToolResult(TypedDict):
                                                                                                                                                                                                                                                                                          """A structured search result entry."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          tool_use_id: str
                                                                                                                                                                                                                                                                                          content: list[WebSearchHit]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      WorkflowOutput

                                                                                                                                                                                                                                                                                      Bases: TypedDict

                                                                                                                                                                                                                                                                                      Output of the Workflow tool.

                                                                                                                                                                                                                                                                                      Source code in src/clawd_code_sdk/models/output_types.py
                                                                                                                                                                                                                                                                                      class WorkflowOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """Output of the Workflow tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          status: Literal["async_launched", "remote_launched"]
                                                                                                                                                                                                                                                                                          taskId: str
                                                                                                                                                                                                                                                                                          taskType: NotRequired[Literal["local_workflow", "remote_agent"]]
                                                                                                                                                                                                                                                                                          """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.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                          workflowName: NotRequired[str]
                                                                                                                                                                                                                                                                                          """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.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                          runId: NotRequired[str]
                                                                                                                                                                                                                                                                                          """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.
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                          summary: NotRequired[str]
                                                                                                                                                                                                                                                                                          transcriptDir: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Directory where subagent transcripts are written during execution"""
                                                                                                                                                                                                                                                                                          scriptPath: NotRequired[str]
                                                                                                                                                                                                                                                                                          """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: NotRequired[str]
                                                                                                                                                                                                                                                                                          """CCR session URL when status is remote_launched"""
                                                                                                                                                                                                                                                                                          warning: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Non-blocking heads-up (e.g.
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          local git state diverges from the pushed branch the cloud session will clone)
                                                                                                                                                                                                                                                                                          """
                                                                                                                                                                                                                                                                                          error: NotRequired[str]
                                                                                                                                                                                                                                                                                          """Set if syntax check failed"""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      error instance-attribute

                                                                                                                                                                                                                                                                                      error: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Set if syntax check failed

                                                                                                                                                                                                                                                                                      runId instance-attribute

                                                                                                                                                                                                                                                                                      runId: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      scriptPath: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      sessionUrl: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      CCR session URL when status is remote_launched

                                                                                                                                                                                                                                                                                      taskType instance-attribute

                                                                                                                                                                                                                                                                                      taskType: NotRequired[Literal['local_workflow', 'remote_agent']]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                                                      transcriptDir: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Directory where subagent transcripts are written during execution

                                                                                                                                                                                                                                                                                      warning instance-attribute

                                                                                                                                                                                                                                                                                      warning: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Non-blocking heads-up (e.g.

                                                                                                                                                                                                                                                                                      local git state diverges from the pushed branch the cloud session will clone)

                                                                                                                                                                                                                                                                                      workflowName instance-attribute

                                                                                                                                                                                                                                                                                      workflowName: NotRequired[str]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      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
                                                                                                                                                                                                                                                                                      class WriteOutput(TypedDict):
                                                                                                                                                                                                                                                                                          """``tool_use_result`` for the Write tool."""
                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          type: Literal["create", "update"]
                                                                                                                                                                                                                                                                                          filePath: str
                                                                                                                                                                                                                                                                                          content: str
                                                                                                                                                                                                                                                                                          structuredPatch: list[StructuredPatchHunk]
                                                                                                                                                                                                                                                                                          originalFile: str | None
                                                                                                                                                                                                                                                                                          gitDiff: NotRequired[GitDiff]
                                                                                                                                                                                                                                                                                          userModified: NotRequired[bool]
                                                                                                                                                                                                                                                                                          staged: NotRequired[bool]
                                                                                                                                                                                                                                                                                          """Whether the write was staged instead of written."""
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      staged instance-attribute

                                                                                                                                                                                                                                                                                      staged: NotRequired[bool]
                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                      Whether the write was staged instead of written.