input_types
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| AgentInput clawd_code_sdk.models.input_types Input for the Task tool. Launches a new agent to handle complex, multi-step tasks. |
||
| ArtifactInput clawd_code_sdk.models.input_types Input for the Artifact tool. |
||
| AskUserQuestion clawd_code_sdk.models.input_types A single question to ask the user. |
||
| AskUserQuestionInput clawd_code_sdk.models.input_types Input for the AskUserQuestion tool. |
||
| AskUserQuestionOption clawd_code_sdk.models.input_types A single option for a user question. |
||
| BashInput clawd_code_sdk.models.input_types Input for the Bash tool. Executes bash commands in a persistent shell session. |
||
| BashOutputInput clawd_code_sdk.models.input_types Input for the BashOutput tool. Retrieves output from a background bash shell. |
||
| ClaudeDesignInput clawd_code_sdk.models.input_types Input for the ClaudeDesign tool. |
||
| CronCreateInput clawd_code_sdk.models.input_types Input for the CronCreate tool. |
||
| CronDeleteInput clawd_code_sdk.models.input_types Input for the CronDelete tool. |
||
| CronListInput clawd_code_sdk.models.input_types Input for the CronList tool. |
||
| EnterPlanModeInput clawd_code_sdk.models.input_types Input for the EnterPlanMode tool. Enters planning mode. |
||
| EnterWorktreeInput clawd_code_sdk.models.input_types Input for the EnterWorktree tool. |
||
| ExitPlanModeInput clawd_code_sdk.models.input_types Input for the ExitPlanMode tool. Exits planning mode for user approval. |
||
| ExitWorktreeInput clawd_code_sdk.models.input_types Input for the ExitWorktree tool. |
||
| FileEditInput clawd_code_sdk.models.input_types Input for the Edit tool. Performs exact string replacements in files. |
||
| FileReadInput clawd_code_sdk.models.input_types Input for the Read tool. Reads files including text, images, PDFs, and notebooks. |
||
| FileWriteInput clawd_code_sdk.models.input_types Input for the Write tool. Writes a file to the local filesystem. |
||
| GlobInput clawd_code_sdk.models.input_types Input for the Glob tool. Fast file pattern matching. |
||
| GrepInput clawd_code_sdk.models.input_types |
||
| KillShellInput clawd_code_sdk.models.input_types Input for the KillBash tool. Kills a running background bash shell. |
||
| ListMcpResourcesInput clawd_code_sdk.models.input_types Input for the ListMcpResources tool. Lists available MCP resources. |
||
| MonitorInput clawd_code_sdk.models.input_types Input for the Monitor tool. |
||
| MonitorWs clawd_code_sdk.models.input_types ``ws`` entry of Monitor. |
||
| NotebookEditInput clawd_code_sdk.models.input_types Input for the NotebookEdit tool. Edits cells in Jupyter notebook files. |
||
| OfferChromeSetupInput clawd_code_sdk.models.input_types Input for the OfferChromeSetup tool. |
||
| ProjectsInput clawd_code_sdk.models.input_types Input for the Projects tool. |
||
| ProposeGoalInput clawd_code_sdk.models.input_types Input for the ProposeGoal tool. |
||
| ProposeSkillsInput clawd_code_sdk.models.input_types Input for the ProposeSkills tool. |
||
| ProposeSkillsProposal clawd_code_sdk.models.input_types ``proposal`` entry of ProposeSkills. |
||
| ProposeSkillsProposalEdit clawd_code_sdk.models.input_types ``edit`` entry of ProposeSkillsProposal. |
||
| PushNotificationInput clawd_code_sdk.models.input_types Input for the PushNotification tool. |
||
| ReadMcpResourceDirInput clawd_code_sdk.models.input_types Input for the ReadMcpResourceDir tool. |
||
| ReadMcpResourceInput clawd_code_sdk.models.input_types Input for the ReadMcpResource tool. Reads a specific MCP resource from a server. |
||
| ReadNotificationsInput clawd_code_sdk.models.input_types Input for the ReadNotifications tool. |
||
| RefreshMcpToolsInput clawd_code_sdk.models.input_types Input for the RefreshMcpTools tool. |
||
| RemoteTriggerInput clawd_code_sdk.models.input_types Input for the RemoteTrigger tool. |
||
| ReportFindingsFinding clawd_code_sdk.models.input_types ``finding`` entry of ReportFindings. |
||
| ReportFindingsInput clawd_code_sdk.models.input_types Input for the ReportFindings tool. |
||
| ScheduleWakeupInput clawd_code_sdk.models.input_types Input for the ScheduleWakeup tool. |
||
| SendFeedbackInput clawd_code_sdk.models.input_types Input for the SendFeedback tool. |
||
| ShowOnboardingRolePickerInput clawd_code_sdk.models.input_types Input for the ShowOnboardingRolePicker tool. |
||
| SkillInput clawd_code_sdk.models.input_types Input for the Skill tool. Invokes a named skill (slash command). |
||
| TaskCreateInput clawd_code_sdk.models.input_types Input for the TaskCreate tool. |
||
| TaskGetInput clawd_code_sdk.models.input_types Input for the TaskGet tool. |
||
| TaskListInput clawd_code_sdk.models.input_types Input for the TaskList tool. |
||
| TaskStopInput clawd_code_sdk.models.input_types Input for the TaskStop tool. |
||
| TaskUpdateInput clawd_code_sdk.models.input_types Input for the TaskUpdate tool. |
||
| TodoItem clawd_code_sdk.models.input_types A single todo item. |
||
| TodoWriteInput clawd_code_sdk.models.input_types Input for the TodoWrite tool. Creates and manages a structured task list. |
||
| ToolSearchInput clawd_code_sdk.models.input_types Input for the ToolSearch tool. Searches for and selects tools by name or query. |
||
| WebFetchInput clawd_code_sdk.models.input_types Input for the WebFetch tool. Fetches content from a URL and processes it with AI. |
||
| WebSearchInput clawd_code_sdk.models.input_types Input for the WebSearch tool. Searches the web and returns formatted results. |
||
| WorkflowInput clawd_code_sdk.models.input_types Input for the Workflow tool. |
🛈 DocStrings¶
Tool input type definitions for Claude Code built-in tools.
These TypedDicts define the input schemas for all built-in Claude Code tools. They represent the JSON wire format and can be used for type-safe tool interactions.
GrepInput
module-attribute
¶
GrepInput = TypedDict(
"GrepInput",
{
"pattern": str,
"path": NotRequired[str],
"glob": NotRequired[str],
"type": NotRequired[str],
"output_mode": NotRequired[Literal["content", "files_with_matches", "count"]],
"-i": NotRequired[bool],
"-n": NotRequired[bool],
"-o": NotRequired[bool],
"-B": NotRequired[int],
"-A": NotRequired[int],
"-C": NotRequired[int],
"head_limit": NotRequired[int],
"multiline": NotRequired[bool],
},
)
Input for the Grep tool. Powerful search built on ripgrep with regex support.
AgentInput
¶
Bases: TypedDict
Input for the Task tool. Launches a new agent to handle complex, multi-step tasks.
Source code in src/clawd_code_sdk/models/input_types.py
isolation
instance-attribute
¶
Isolation mode.
"worktree" creates a temporary git worktree; "remote" launches the agent in a remote cloud environment (always runs in background).
mode
instance-attribute
¶
Deprecated; ignored. Subagents inherit the parent session's permission mode.
model
instance-attribute
¶
Optional model override for this agent.
Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent.
run_in_background
instance-attribute
¶
Whether to run the agent in the background.
subagent_type
instance-attribute
¶
The type of specialized agent to use for this task.
team_name
instance-attribute
¶
Team name for spawning. Uses current team context if omitted.
ArtifactInput
¶
Bases: TypedDict
Input for the Artifact tool.
Source code in src/clawd_code_sdk/models/input_types.py
865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 | |
action
instance-attribute
¶
action: NotRequired[
Literal[
"publish",
"list",
"read",
"list_types",
"watch",
"unwatch",
"status",
"upload_asset",
"list_assets",
"read_asset",
"delete_asset",
"pin",
"unpin",
]
]
Omit (or 'publish') to publish file_path.
'list' enumerates artifacts — the user's own by default, see scope; only limit, scope and
page_token may accompany it. 'read' returns the content of the published artifact at url
(raw HTML for the user's own; an isolated summary, steered by the optional prompt, for one
someone else owns, though a page published in this session's own Slack channel can come back in
full as untrusted content) — see Calls. 'watch', 'unwatch', and 'status' manage live-update
subscriptions through which a session keeps track of new versions of an artifact published
elsewhere, and those aren't available in this session: 'watch' only reports that — this session
does not keep track of new versions — and 'status' lists this session's artifact watches (pass
url to check one). 'upload_asset' adds one local media, PDF, font, or text file to an existing
artifact — pass url and file_path (or file_paths for several in one call). 'list_assets'
lists the files in an artifact's asset store (pass url; after continues a listing),
'read_asset' saves one of them to a local file named by its id (pass url and asset_id,
optionally out_dir), and 'delete_asset' permanently removes one (pass url and asset_id).
See Artifact assets above. 'pin' adds the artifact at url to the user's pinned list in
their claude.ai sidebar and 'unpin' removes it (nothing else may accompany either) — private to
the user, reversible, and no change to who can see the artifact.
after
instance-attribute
¶
list_assets only: the next value from a previous list_assets result, to continue that
listing.
asset_id
instance-attribute
¶
read_asset and delete_asset: the asset's id (32 hex characters), from a list_assets or upload_asset result.
capabilities
instance-attribute
¶
Runtime capabilities this page declares, as {name: config}.
The control plane is the authority on valid names and config shapes. An empty object clears any
previously stored declaration; omit the field on a redeploy to carry the stored declaration
forward unchanged. Before declaring any capability, load the artifact-capabilities skill for
the current contract and per-capability guidance.
contract
instance-attribute
¶
The artifact's runtime version.
Omit to keep its current version (the default); 'latest' to upgrade; a specific version to pin or roll back. Changing it changes how the published page behaves — pass only when the author explicitly intends the change, never as a side effect of editing.
description
instance-attribute
¶
One-sentence subtitle shown on the gallery card. Say what the page is or does.
file_path
instance-attribute
¶
Path to the .html file to render.
Required to publish (the default action). Use a short, distinctive basename — it is the last-
resort title when the HTML has no <title> and no title parameter is given. For
'upload_asset', the local image, video, PDF, font, stylesheet (CSS), script (JS), or text (CSV,
Markdown, JSON, plain text) file to upload.
file_paths
instance-attribute
¶
upload_asset: several local image, video, PDF, font, stylesheet or script files in place of
file_path, up to 25 in one call, all into the artifact that url names; one approval
covers the call, and the result lists each file's id and url, or why it was not uploaded.
A CSV, Markdown, JSON or plain-text file, a symbolic or hard link, and a file outside the
working directory each go in a call of their own with file_path. @minItems 1 @maxItems 25
force
instance-attribute
¶
Last-resort overwrite that DISCARDS the newer published version's page — another session's publish, or someone's save from a page that can publish new versions of itself.
On a conflict the fix is to merge your changes onto the newer content (handed to you in the rejection, or re-read) and publish again — not force. Pass force:true only when the user has explicitly said to discard that specific version; never to get past a conflict on your own judgment. The tracked baseVersion is still sent; with force:true the server treats it as informational and overwrites, unless it refuses force over a version saved from inside the page. Omit (or false) so a concurrent write conflicts instead of being silently clobbered.
icon
instance-attribute
¶
One short generic word for the artifact's browser-tab icon, such as chart, calendar, recipe, code or map — a plain signifier, not a product or brand name.
Include it on every page's first publish; omit when republishing to keep the current icon, and pass a new one only when the user asks.
label
instance-attribute
¶
A short name for this publish, max 60 chars (e.g.
"Draft to legal"). Optional — a few words, not a description.
limit
instance-attribute
¶
list only: maximum artifacts to return (default 25).
out_dir
instance-attribute
¶
read_asset: directory to save into — default: this artifact's folder in your scratchpad directory, where saving needs no approval and which you can Read from.
read_asset names the file by the asset id plus the extension for its type; saving to any directory other than the default is an ordinary file save the user may be asked to approve.
page_token
instance-attribute
¶
list only: the next_page_token a listing of the same scope gave, to list the artifacts
after it.
pin
instance-attribute
¶
publish only: true also pins the published artifact to the user's claude.ai sidebar once it is published — pass it only when the user asked for that; a pin that fails never fails the publish (the result says so).
prompt
instance-attribute
¶
read only: what to extract from an artifact shared with the user — its content reaches you as an isolated summary answering this.
Ignored for artifacts the user owns and for a page published in this session's own Slack channel (raw content is returned); optional.
scope
instance-attribute
¶
list only: 'mine' (default) lists artifacts the user owns; 'shared' lists artifacts other people shared with the user; 'all' lists both.
Rows are labeled (mine)/(shared) whenever scope is not 'mine'.
title
instance-attribute
¶
Title for the artifact — the name shown in the browser tab and gallery.
A short, distinctive noun-phrase name — not a generic label, a summary, or a name with an
appended explainer. Prefer a <title> tag at the top of the HTML itself; this parameter fills
in only when the file lacks one in the first 8KB of the file, and never overrides the tag. HTML
publishes only — Markdown pages keep their filename identity. Content always comes from
file_path — there is no inline content parameter.
url
instance-attribute
¶
An existing artifact's claude.ai link (claude.ai/artifact/{id} or claude.ai/code/artifact/{uuid}; a chat, project or session link is not one) to update in place.
Pass whenever the user wants to update an artifact this conversation did not publish — "update my artifact", "keep the same link", a pasted artifact URL — and find the URL with action: "list" or ask the user for the link if you don't have it; without this, the publish creates a separate artifact instead of updating the existing one. Omit for new artifacts and same-conversation redeploys. Must be an artifact the user owns or was given edit access to (a read of it says "writer"). Before publishing to an artifact this conversation has neither read nor published, read it (action: "read") and build on what comes back; a publish sent without that read is refused. A refusal that hands you the live version counts as that read: merge your edits into that version and publish that; never resend the refused content unchanged. For 'read' and the other url-addressed actions: the artifact to act on.
AskUserQuestion
¶
Bases: TypedDict
A single question to ask the user.
Source code in src/clawd_code_sdk/models/input_types.py
options
instance-attribute
¶
options: list[AskUserQuestionOption]
The available choices (2-4 options). An "Other" option is automatically provided.
question
instance-attribute
¶
The complete question to ask. Should be clear, specific, and end with a question mark.
AskUserQuestionInput
¶
Bases: TypedDict
Input for the AskUserQuestion tool.
Source code in src/clawd_code_sdk/models/input_types.py
answers
instance-attribute
¶
User answers populated by the permission system.
Maps question text to selected option label(s). Multi-select answers are comma-separated.
questions
instance-attribute
¶
questions: list[AskUserQuestion]
Questions to ask the user (1-4 questions).
AskUserQuestionOption
¶
Bases: TypedDict
A single option for a user question.
Source code in src/clawd_code_sdk/models/input_types.py
BashInput
¶
Bases: TypedDict
Input for the Bash tool. Executes bash commands in a persistent shell session.
Source code in src/clawd_code_sdk/models/input_types.py
BashOutputInput
¶
Bases: TypedDict
Input for the BashOutput tool. Retrieves output from a background bash shell.
Source code in src/clawd_code_sdk/models/input_types.py
ClaudeDesignInput
¶
Bases: TypedDict
Input for the ClaudeDesign tool.
Source code in src/clawd_code_sdk/models/input_types.py
CronCreateInput
¶
Bases: TypedDict
Input for the CronCreate tool.
Source code in src/clawd_code_sdk/models/input_types.py
cron
instance-attribute
¶
Standard 5-field cron expression in local time: "M H DoM Mon DoW" (e.g.
"* /5 * * * *" = every 5 minutes, "30 14 28 2 *" = Feb 28 at 2:30pm local once).
durable
instance-attribute
¶
true = persist to .claude/scheduled_tasks.json and survive restarts.
false (default) = in-memory only, dies when this Claude session ends. Use true only when the user asks the task to survive across sessions.
recurring
instance-attribute
¶
true (default) = fire on every cron match until deleted or auto-expired after 7 days.
false = fire once at the next match, then auto-delete. Use false for "remind me at X" one-shot requests with pinned minute/hour/dom/month.
CronDeleteInput
¶
Bases: TypedDict
Input for the CronDelete tool.
Source code in src/clawd_code_sdk/models/input_types.py
CronListInput
¶
EnterPlanModeInput
¶
Bases: TypedDict
Input for the EnterPlanMode tool. Enters planning mode.
Not part of the official SDK ToolInputSchemas as of SDK v0.2.62. Shape derived from empirical testing.
EnterWorktreeInput
¶
Bases: TypedDict
Input for the EnterWorktree tool.
Source code in src/clawd_code_sdk/models/input_types.py
name
instance-attribute
¶
Optional name for the worktree. A random name is generated if not provided.
path
instance-attribute
¶
Path to an existing worktree of the current repo to switch into instead of creating new one.
Must appear in git worktree list for the current repo. Mutually exclusive with name.
ExitPlanModeInput
¶
Bases: TypedDict
Input for the ExitPlanMode tool. Exits planning mode for user approval.
Source code in src/clawd_code_sdk/models/input_types.py
ExitWorktreeInput
¶
Bases: TypedDict
Input for the ExitWorktree tool.
Source code in src/clawd_code_sdk/models/input_types.py
FileEditInput
¶
Bases: TypedDict
Input for the Edit tool. Performs exact string replacements in files.
Source code in src/clawd_code_sdk/models/input_types.py
FileReadInput
¶
Bases: TypedDict
Input for the Read tool. Reads files including text, images, PDFs, and notebooks.
Source code in src/clawd_code_sdk/models/input_types.py
allow_large
instance-attribute
¶
Read a text file (or line range) that is over the usual size limits.
limit
instance-attribute
¶
The number of lines to read. Only provide if the file is too large to read at once
offset
instance-attribute
¶
The line number to start reading from.
Only provide if the file is too large to read at once.
pages
instance-attribute
¶
Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files.
Maximum 20 pages per request.
FileWriteInput
¶
Bases: TypedDict
Input for the Write tool. Writes a file to the local filesystem.
Source code in src/clawd_code_sdk/models/input_types.py
GlobInput
¶
Bases: TypedDict
Input for the Glob tool. Fast file pattern matching.
Source code in src/clawd_code_sdk/models/input_types.py
KillShellInput
¶
Bases: TypedDict
Input for the KillBash tool. Kills a running background bash shell.
Source code in src/clawd_code_sdk/models/input_types.py
ListMcpResourcesInput
¶
Bases: TypedDict
Input for the ListMcpResources tool. Lists available MCP resources.
Source code in src/clawd_code_sdk/models/input_types.py
MonitorInput
¶
Bases: TypedDict
Input for the Monitor tool.
Source code in src/clawd_code_sdk/models/input_types.py
command
instance-attribute
¶
Shell command or script. Each stdout line is an event; exit ends the watch.
description
instance-attribute
¶
Short human-readable description of what you are monitoring (shown in notifications).
timeout_ms
instance-attribute
¶
Kill the monitor after this deadline.
Default 300000ms. Deadlines above 1800000ms are capped to 1800000ms. You are notified at expiry and can re-arm.
MonitorWs
¶
NotebookEditInput
¶
Bases: TypedDict
Input for the NotebookEdit tool. Edits cells in Jupyter notebook files.
Source code in src/clawd_code_sdk/models/input_types.py
OfferChromeSetupInput
¶
Bases: TypedDict
Input for the OfferChromeSetup tool.
Source code in src/clawd_code_sdk/models/input_types.py
reason
instance-attribute
¶
A short phrase naming what the task needs the user's own browser for.
ProjectsInput
¶
Bases: TypedDict
Input for the Projects tool.
Source code in src/clawd_code_sdk/models/input_types.py
content
instance-attribute
¶
project_write: inline doc text.
Mutually exclusive with local_path. Use local_path for anything you have on disk.
local_path
instance-attribute
¶
project_write: a file inside the working directory to upload.
The tool reads, encodes, and uploads directly — contents never enter your context. Mutually exclusive with content.
path
instance-attribute
¶
project_read/project_write/project_delete: doc path.
project_write: an existing path is replaced in place; a new bare filename (no "/") is namespaced
to claude/<name>. project_memory_read: memory file path as listed by project_memory_list.
present_to_user
instance-attribute
¶
project_write: true marks this doc as the file the user needs to see — the deliverable they asked for or must act on.
Defaults to false; leave it unset for routine saves, notes, and bulk writes.
ProposeGoalInput
¶
Bases: TypedDict
Input for the ProposeGoal tool.
Source code in src/clawd_code_sdk/models/input_types.py
ask_user
instance-attribute
¶
Whether to ask the user for approval before the goal is set.
Defaults to true — an approval dialog is shown. Set false ONLY when the user's own words in this conversation stated this outcome as what they want; the goal is then set directly, with a visible notice in the transcript, and the user can clear it with /goal clear.
condition
instance-attribute
¶
The completion condition to propose, written so a separate evaluator can verify it from the conversation (e.g.
"all tests in test/auth pass (bun test exits 0)"). At most 500 characters — the user must be able to read the whole condition in the approval dialog.
ProposeSkillsInput
¶
Bases: TypedDict
Input for the ProposeSkills tool.
Source code in src/clawd_code_sdk/models/input_types.py
ProposeSkillsProposal
¶
Bases: TypedDict
proposal entry of ProposeSkills.
Source code in src/clawd_code_sdk/models/input_types.py
description
instance-attribute
¶
One short sentence saying when to use this skill: aim for under 200 characters, never more than 1024, and no angle brackets.
Shown on the review card and saved as the skill's description, which is what decides when the skill is used. For an improvement, reuse the existing skill's description unless the change alters when the skill applies.
edits
instance-attribute
¶
edits: NotRequired[list[ProposeSkillsProposalEdit | list[ProposeSkillsProposalEdit]]]
For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order.
They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter. @minItems 1 @maxItems 100
evidence
instance-attribute
¶
memory file paths where this procedure was observed
name
instance-attribute
¶
kebab-case skill slug; must not contain "claude" or "anthropic"; at most 64 characters for a new skill
skillMd
instance-attribute
¶
For a new skill or a full rewrite.
The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.
target
instance-attribute
¶
Name of the existing skill to update. Required when kind is 'improvement'; omit for 'new'.
ProposeSkillsProposalEdit
¶
Bases: TypedDict
edit entry of ProposeSkillsProposal.
Source code in src/clawd_code_sdk/models/input_types.py
PushNotificationInput
¶
Bases: TypedDict
Input for the PushNotification tool.
Source code in src/clawd_code_sdk/models/input_types.py
message
instance-attribute
¶
The notification body. Keep it under 200 characters; mobile OSes truncate.
ReadMcpResourceDirInput
¶
Bases: TypedDict
Input for the ReadMcpResourceDir tool.
Source code in src/clawd_code_sdk/models/input_types.py
ReadMcpResourceInput
¶
Bases: TypedDict
Input for the ReadMcpResource tool. Reads a specific MCP resource from a server.
Source code in src/clawd_code_sdk/models/input_types.py
ReadNotificationsInput
¶
RefreshMcpToolsInput
¶
Bases: TypedDict
Input for the RefreshMcpTools tool.
Source code in src/clawd_code_sdk/models/input_types.py
server
instance-attribute
¶
Optional server name: refresh only this server. Omit to refresh all connected servers.
RemoteTriggerInput
¶
Bases: TypedDict
Input for the RemoteTrigger tool.
Source code in src/clawd_code_sdk/models/input_types.py
body
instance-attribute
¶
Required for create and update; optional for run
cursor
instance-attribute
¶
The next_cursor from the previous page of the same listing (list_runs with the same trigger_id, or get_run_log with the same session_id), passed back unchanged.
Not an offset, a count or an event number.
session_id
instance-attribute
¶
Required for get_run_log: a run session id (cse_… or session_…, from list_runs)
trigger_id
instance-attribute
¶
Required for get, update, run, and list_runs
ReportFindingsFinding
¶
Bases: TypedDict
finding entry of ReportFindings.
Source code in src/clawd_code_sdk/models/input_types.py
category
instance-attribute
¶
Short kebab-case slug of the finding type, e.g.
"correctness", "simplification", "efficiency", "test-coverage"
failure_scenario
instance-attribute
¶
Concrete inputs/state → wrong output/crash
outcome
instance-attribute
¶
Set ONLY when re-reporting after applying fixes: what happened to this finding
severity
instance-attribute
¶
Set when the review instructions ask for it.
important: a bug the change adds or makes worse; pre_existing: a bug that was there before the change; nit: a minor issue
short_summary
instance-attribute
¶
Compressed label for compact UI (≤60 chars): the claim alone, no rationale or consequence clause
verdict
instance-attribute
¶
Set when a verify pass ran; absent on inline-only reviews
ReportFindingsInput
¶
Bases: TypedDict
Input for the ReportFindings tool.
Source code in src/clawd_code_sdk/models/input_types.py
findings
instance-attribute
¶
findings: list[ReportFindingsFinding]
Verified findings, most-severe first; empty if none survived @maxItems 32
level
instance-attribute
¶
Effort level the review ran at
ScheduleWakeupInput
¶
Bases: TypedDict
Input for the ScheduleWakeup tool.
Source code in src/clawd_code_sdk/models/input_types.py
delaySeconds
instance-attribute
¶
Seconds from now to wake up.
Clamped to [60, 3600] by the runtime. Required unless stop is true.
noop
instance-attribute
¶
true = nothing changed (you checked and there is nothing to report).
false = something happened worth keeping (edited a file, posted a message, advanced state,
surfaced a finding). Consecutive noop:true ticks are collapsed in the user's terminal view and
tracked as a streak. Required unless stop is true.
prompt
instance-attribute
¶
The /loop input to fire on wake-up.
Pass the same /loop input verbatim each turn so the next firing re-enters the skill and
continues the loop. For autonomous /loop (no user prompt), pass the literal sentinel
<<autonomous-loop-dynamic>> instead (the dynamic-pacing variant, not the CronCreate-mode
<<autonomous-loop>>). Required unless stop is true.
reason
instance-attribute
¶
One short sentence explaining the chosen delay.
Goes to telemetry and is shown to the user. Be specific. Required unless stop is true.
stop
instance-attribute
¶
Set to true to end the dynamic loop immediately instead of scheduling another wakeup.
When true, all other fields are ignored and no further wakeups fire.
SendFeedbackInput
¶
Bases: TypedDict
Input for the SendFeedback tool.
Source code in src/clawd_code_sdk/models/input_types.py
area
instance-attribute
¶
Optional short tag naming the part of Claude Code this is about (e.g.
"hooks config", "/help", "file editing"). Leave blank if unclear.
details
instance-attribute
¶
Labeled bullets, in order: What happened: (observed vs.
expected, exact error text if short); What the user said: (quoted, or "User didn't comment; observed by the model."); Repro: (minimal steps); Evidence: (request IDs, timestamps, paths, versions; omit if none); optionally a final Cause: only if verified in-session. One to three lines per bullet. No narrative paragraphs, no speculation, no secrets.
failure_mode
instance-attribute
¶
failure_mode: NotRequired[
Literal[
"instruction_following",
"destructive_actions",
"code_quality",
"repetition_and_looping",
"model_regression",
"overconfidence_and_hallucination",
"context_and_memory",
"overeager",
"over_correction",
"stopping_short",
"dispute_or_decline",
"subagent_overspawn",
"tone_or_preachiness",
"excessive_questions",
"unwanted_scope",
"other",
]
]
When the report is about MODEL BEHAVIOR (not a product bug), the closest failure mode, or
other when it is a model-behavior issue that fits no listed value.
Omit only when the report is a product/tool bug with no model-behavior component.
task_category
instance-attribute
¶
task_category: NotRequired[
Literal["code_edit", "debug", "explain", "plan", "shell", "search", "review", "other"]
]
What kind of task the session was doing when the issue occurred, or other when it is a
clear task that fits no listed value.
Omit only if genuinely unclear.
type
instance-attribute
¶
What kind of feedback this is.
ShowOnboardingRolePickerInput
¶
SkillInput
¶
Bases: TypedDict
Input for the Skill tool. Invokes a named skill (slash command).
Not part of the official SDK ToolInputSchemas as of SDK v0.2.62. Shape derived from empirical testing.
Source code in src/clawd_code_sdk/models/input_types.py
TaskCreateInput
¶
Bases: TypedDict
Input for the TaskCreate tool.
Source code in src/clawd_code_sdk/models/input_types.py
TaskGetInput
¶
Bases: TypedDict
Input for the TaskGet tool.
Source code in src/clawd_code_sdk/models/input_types.py
TaskListInput
¶
TaskStopInput
¶
Bases: TypedDict
Input for the TaskStop tool.
Source code in src/clawd_code_sdk/models/input_types.py
TaskUpdateInput
¶
Bases: TypedDict
Input for the TaskUpdate tool.
Source code in src/clawd_code_sdk/models/input_types.py
activeForm
instance-attribute
¶
Present continuous form shown in spinner when in_progress (e.g., "Running tests")
addBlockedBy
instance-attribute
¶
Task IDs that block this task
metadata
instance-attribute
¶
Metadata keys to merge into the task. Set a key to null to delete it.
status
instance-attribute
¶
New status for the task
TodoItem
¶
Bases: TypedDict
A single todo item.
Source code in src/clawd_code_sdk/models/input_types.py
TodoWriteInput
¶
Bases: TypedDict
Input for the TodoWrite tool. Creates and manages a structured task list.
Source code in src/clawd_code_sdk/models/input_types.py
ToolSearchInput
¶
Bases: TypedDict
Input for the ToolSearch tool. Searches for and selects tools by name or query.
Source code in src/clawd_code_sdk/models/input_types.py
WebFetchInput
¶
Bases: TypedDict
Input for the WebFetch tool. Fetches content from a URL and processes it with AI.
Source code in src/clawd_code_sdk/models/input_types.py
WebSearchInput
¶
Bases: TypedDict
Input for the WebSearch tool. Searches the web and returns formatted results.
Source code in src/clawd_code_sdk/models/input_types.py
WorkflowInput
¶
Bases: TypedDict
Input for the Workflow tool.
Source code in src/clawd_code_sdk/models/input_types.py
args
instance-attribute
¶
Optional input value exposed to the script as the global args, verbatim.
Pass arrays/objects as actual JSON values, NOT as a JSON-encoded string — a stringified list
breaks args.filter/args.map in the script. Use for parameterized named workflows (e.g. a
research question).
description
instance-attribute
¶
Ignored — set the workflow description in the script's meta block.
name
instance-attribute
¶
Name of a predefined workflow (built-in or from .claude/workflows/).
Resolves to a self-contained script.
resumeFromRunId
instance-attribute
¶
Run ID of a prior Workflow invocation to resume from.
Completed agent() calls with unchanged (prompt, opts) return their cached results instantly; only edited or new calls re-run. Same-session only. Stop the prior run first (TaskStop) before resuming.
script
instance-attribute
¶
Self-contained workflow script.
Must begin with export const meta = { name, description, phases } (pure literal, no computed
values) followed by the script body using agent()/parallel()/pipeline()/phase().
scriptPath
instance-attribute
¶
Path to a workflow script file on disk.
Every Workflow invocation persists its script under the session directory and returns the path
in the tool result. To iterate, edit that file with Write/Edit and re-invoke Workflow with the
same scriptPath instead of re-sending the full script. Takes precedence over script and
name.
title
instance-attribute
¶
Ignored — set the workflow title in the script's meta block.