Mew. Work. 文档

提示词档案

Mewrk 自己加进对话的话,从环境信息块到工具描述、工具结果和通知,几乎每一句都是一个带内置英文文本的键。提示词档案是一个 JSON 文件,覆盖你写出的那些键;其余的键保持内置措辞。

档案能改什么

档案可以改写或去掉:

  • 环境信息块,以及系统提示词里技能、MCP 服务器和钩子的说明段;
  • 内置工具和 MCP 工具的描述;
  • 工具成功后返回的话,例如记忆和交接的确认、后台任务的状态;
  • Mewrk 在对话中途送达的通知,例如计划模式引导和交接请求;
  • 记忆、项目指令、子代理、工作流和联网搜索相关的文字。

档案只改变模型读到的内容。它改不了:

  • 对话自己的系统提示词卡片。那张卡片在时间线上直接编辑,或在预设的对话模板里编辑;
  • 有哪些工具、工具的参数(少数有对应键的参数描述除外)、哪些操作需要审批;
  • 工具的错误信息,它们固定为英文;
  • Mewrk 会回读的标记,例如 [Image #N] 和 <task-notification>,以及 MEMORY.md 的标题行;
  • 应用界面,包括审批卡和对话框:无论选哪个档案,它们都使用应用的语言。

Mewrk 有一个内置档案 Mewrk concise,英文,属于应用本身,随每个版本更新,不能编辑。它只保留有能力的模型自己推断不出的内容,也是默认档案:不选任何档案就等于选它,内置预设 mewrk 也不指定文件。旧设置里还指着已经撤掉的 Mewrk guided 的,同样按 Mewrk concise 处理。

档案文件放在哪里

Mewrk 会列出 ~/.mewrk/tool-descriptions/ 里直接存放的每个 .json 和 .jsonc 文件。子文件夹和符号链接会被忽略,工作区自己的 .mewrk/tool-descriptions/ 不会读取。Mewrk 从不创建、修改或删除这些文件。

选择档案

  1. 打开 更多选项 → 对话设置 → 工具描述。
  2. 勾选你自己的一个文件。勾选另一个会替换它,取消勾选则回到内置的 Mewrk concise。

这一页只列出你自己的文件,没有 Mewrk concise 这一行:一个都不勾时,对话本来就用它;文件夹里一个文件都没有时,页面显示 尚未发现工具描述文件。预设的设置里也有同一页,新对话会沿用预设的选择(参见预设)。只有角色窗口会按名字提供 Mewrk concise:角色的 工具描述 菜单里有 跟随调用方(默认)、Mewrk concise 和你的文件,选 Mewrk concise 后,即使发起调用的对话用的是某个文件,这个角色的子代理也用内置措辞。打开对话设置时列表会刷新,在其中的 技能、MCP 或 钩子 页按 重新扫描 也会刷新。

列表里显示 含义
{name}(不可用) 文件不是有效的 JSON(可带注释),或者既没有可识别的键,也没有写了文字的工具行。选中这样的文件时,对话按 Mewrk concise 运行。
{id}(目录中已不存在) 选中的文件被改名、移动或删除了。在你另选之前,对话按 Mewrk concise 运行。

选择绑定的是文件所在的位置。改文件里的 name 不影响选择;给文件改名、移动文件或移动它所在的工作区文件夹,选择就会失效。

改动何时生效

  • 每次运行开始时都会重新读取选中的文件:改好、保存,发出下一条消息即可。
  • 新文字从下一次运行起生效。对话里已有的工具结果和通知保留原来的措辞。
  • 子代理和工作流步骤使用它们启动时对话所用的档案,除非它们的角色另选了档案。角色选 跟随调用方(默认)时,它的子代理用发起调用的对话所用的档案;给角色另选一份,这个角色的子代理的工具描述、提示词,以及它自己这次运行里收到的工具结果和通知,就改用这一份;这份文件改动后,下一个启动或恢复的子代理就会用上。调用方的模型读到的有关子代理的内容(比如子代理的结果)仍然用调用方自己的措辞。
  • 在对话中途换档案或修改选中的文件,会改变请求的开头,下一个请求就用不上提供商的提示缓存。对话发出第一个请求之后,工具描述 这一行会像其他会让缓存失效的设置一样标成橘色,切换前 Mewrk 会先问一次。

文件格式

{
  // Shown in the Tool descriptions list
  "name": "Terse",
  "prompts": {
    "task.wait_idle": "Nothing is running.",
    "system.environment.date": "Date: {date}",
    "project_memory.untrusted_banner": ""
  },
  "tools": [
    {
      "toolName": "grep",
      "description": "Search file contents. Prefer grep to reading whole files."
    }
  ]
}
字段 类型 作用
name 字符串 在 工具描述 里显示的名字,最多 120 个字符。默认是去掉扩展名的文件名。
prompts 对象 键到文本的映射,每一项替换该键的内置文本。未知的键和不是字符串的值会被忽略。
tools 数组 每一行覆盖一个工具。
tools[].toolName 字符串,必填 内置工具名,例如 grep;或模型看到的 MCP 工具全名,以 mcp__ 开头(可从 更多选项 → 历史记录 的 tools 行复制)。
tools[].variant 字符串 只对内置工具有意义,省略即标准形式。有些工具在特定情况下换用另一份描述,用它指明覆盖哪一份:child(pwsh、powershell、bash、zsh、sh、task_wait,在子代理里)、unguarded(write、edit,对话关闭了文件防误写保护时)、text_only(read,模型不接受图片时)、native(web_search,由对话自己的模型执行搜索时)、async(agent_spawn、workflow,模型接受异步工具调用、结果稍后作为这次调用自己的输出返回时)。
tools[].description 字符串 替换工具的描述。对内置工具,它和 tool.<name>.description 键(带变体时是 tool.<name>.<variant>.description)是同一段文字,并且优先于 prompts 里该键的写法。对 MCP 工具,它替换服务器提供的描述。留空则保持现有文字。旧名字 schemaNotes 仍然可用;两个都写时取 description。

同一个工具(同一个变体)有多行时,第一行有文字的生效。

  • 注释。 档案文件按 JSONC 读取:可以写 // 与 /* */ 注释,最后一项后面也允许多一个逗号。文件名以 .json 或 .jsonc 结尾都行。
  • 回退。 每个键先用选中文件里的文本,文件里没有这个键时用内置英文文本。选中的文件丢失或不是有效的 JSON 时,整体按内置档案处理。
  • 空字符串。 "" 的意思是「这里什么都不说」。system.environment_section 为空会去掉整个环境信息块;project_memory.untrusted_banner 为空会去掉项目指令里的那段横幅。
  • 默认为空的键。 web.findings_notice、web.results_notice(联网搜索与抓取结果里的 notice)和 web.untrusted_marker(加在检索内容中像指令的行前面的前缀),在你填写之前不会加入任何内容。
  • 占位符。 花括号里的词,例如 {date},会在使用时填入实际内容;键参考里列出了每个键的占位符。占位符可以不写;写了键没有声明的占位符,会原样留在文字里。
  • 随工具出现的句子。 工具和参数的描述里,{?read}…{/} 只在这次请求提供了 read 时保留 …,{?read|grep}…{/} 在提供了其中任意一个时保留,{!read}…{/} 在这些工具一个都没提供时保留。标记可以嵌套,@shell 代表所有 shell 工具。子代理附加说明 subagent.addendum 也认这些标记,对照的是那个子代理自己的工具。
  • 列表。 Mewrk 把多个名字拼成列表时,用 format.list_separator 分隔(默认是 , )。
  • 大小。 文件必须是 UTF-8 编码的 JSON,最大 1 MiB。

自己写一份

从模板开始:这是一份带注释的文件,包含每个键及其当前的内置文本,并在注释里写明每个键的作用和可用的占位符。不含注释的内置档案,以及列出每个键的占位符和出现位置的键清单,也在这里:

  1. 下载与你的语言对应的模板,tool-description-template.zh-CN.jsonc 或 tool-description-template.en-US.jsonc,另存一份为 ~/.mewrk/tool-descriptions/<name>.jsonc。两份只有注释的语言不同,文字都是内置的英文。
  2. 设置 name,然后删掉所有你不打算改的键。删掉的键会继续跟随 Mewrk 的更新;留下的键则固定为你写的文字。
  3. 修改留下的文字,保留每个键用到的占位符。
  4. 打开 更多选项 → 对话设置 → 工具描述,勾选这个文件。列表里没有的话,关掉对话设置再重新打开。
  5. 发一条消息,然后打开 更多选项 → 历史记录。system 行是 Mewrk 发出的系统提示词,tools 行是工具描述。

想让模型用中文或其他语言工作,就要翻译每一个键并保留整个文件:文件里缺少的键会回退到英文。

键参考

下面按前缀分组列出每个键、它接受的占位符以及文字出现的位置。点开一组即可查看其中的键。

system.* 36
键占位符出现在哪里
system.environment_section{facts}Frame of the environment block at the head of the host system prompt: the heading and the sentence introducing the fact list. {facts} is the list, one - item per system.environment.* line. Emptying this key removes the whole block, facts included.
system.environment.working_directory{path}Environment fact naming the directory this conversation's tools resolve relative paths against — its worktree when it has one, otherwise the workspace root.
system.environment.worktree—Environment fact added when the conversation runs on an isolated worktree, telling the model to stay in it rather than reaching for the original checkout.
system.environment.worktree_stash—Environment fact added alongside the worktree line: the stash stack is shared with every other checkout of the repository, so a bare git stash pop can take another session's work.
system.environment.git_repository{value}Environment fact stating whether the working directory sits inside a Git checkout. {value} is true or false.
system.environment.workspaces—Heading of the environment block's numbered workspace list. It appears only when the conversation has more than one workspace, because the number is how a tool call names which one it acts in; each workspace follows as its own nested item.
system.environment.workspace_entry{number} {path} {location}One item of the numbered workspace list. {number} is the value a tool's workspace parameter takes, {path} is the root on that machine, and {location} is the rendered machine phrase from the system.environment.workspace_on_* keys.
system.environment.workspace_on_host—Machine phrase for a workspace on the machine Mewrk itself runs on. It is what {location} becomes for a local workspace.
system.environment.workspace_on_wsl{name}Machine phrase for a workspace inside a WSL distribution. {name} is the distribution name.
system.environment.workspace_on_ssh{name}Machine phrase for a workspace on a registered SSH machine. {name} is the machine's name in the catalog.
system.environment.platform{platform}Environment fact naming the host operating system, as Rust's std::env::consts::OS spells it (windows, macos, linux).
system.environment.os_version{version}Environment fact naming the host operating-system version. The line is omitted when the version could not be read.
system.environment.date{date}Environment fact naming today's date on the host, as YYYY-MM-DD.
system.mcp_section{servers}Section appended to the system prompt listing the MCP servers selected for the conversation; {servers} is one system.capability_row per server.
system.mcp_server_default_description—Description used for an MCP server whose configuration has no description.
system.mcp_server_place{machine} {workspaces}Appended to an MCP server's row in system.mcp_section when the conversation's workspaces are not all one folder on this computer: the machine the server runs on and the workspaces there. {machine} is a system.environment.workspace_on_* phrase and {workspaces} the joined workspace numbers.
system.mcp_server_place_none{machine}Appended to an MCP server's row like system.mcp_server_place when none of the conversation's workspaces is on the machine the server runs on.
system.hooks_section{hook_names} {hooks}Section appended to the system prompt listing the lifecycle hooks selected for the conversation; {hook_names} is the joined name list and {hooks} one system.capability_row per hook.
system.skill_folder{directory}Line after a skill's body in the system prompt (and in system.skill_added_body) when skills are delivered in the prompt, saying where the skill's files are. {directory} is the folder, or system.skill_workspace_directory / system.skill_local_directory when the conversation's workspaces are not all one folder on this computer.
system.skill_workspace_directory{path} {workspace}The folder of a skill a workspace declared, as system.skill_folder and the skill tool's result give it when the conversation has more than one workspace or its one workspace is on another machine. {path} is the folder on that workspace's machine and {workspace} its number.
system.skill_local_directory{path}The folder of a global skill (~/.mewrk/skills) in the same situation as system.skill_workspace_directory: it is on this computer, whichever machines the workspaces are on. {path} is the folder.
system.skill_added_body{name} {body}The host message delivering a skill selected after the conversation started, when skill bodies go into the prompt rather than behind the skill tool.
system.skill_added_trigger{name} {trigger}The host message announcing a skill selected after the conversation started, when skills are loaded on demand; the body stays behind the skill tool.
system.skill_added_untriggered{name}system.skill_added_trigger for a skill whose SKILL.md gives no description to use as its trigger: the skill is still announced, since the skill tool serves it, but with no trigger to fill a {trigger} slot.
system.capability_row{name} {description}One row of the MCP-server or hook list in the system prompt.
system.hook_matcher_detail{matcher}Suffix added to a hook's description when the hook has a matcher.
system.hook_event.session_start—Description of a SessionStart hook.
system.hook_event.instructions_loaded—Description of an InstructionsLoaded hook.
system.hook_event.user_prompt_submit—Description of a UserPromptSubmit hook.
system.hook_event.pre_tool_use—Description of a PreToolUse hook.
system.hook_event.permission_request—Description of a PermissionRequest hook.
system.hook_event.post_tool_use—Description of a PostToolUse hook.
system.hook_event.stop—Description of a Stop hook.
system.plan_mode—System prompt appended at the point the user turns plan mode on, every time they do: what plan mode forbids, how the plan document works, and the workflow that ends in exit_plan_mode. It travels as a mid-conversation system message where the model and endpoint take one, and as a host message (a &lt;system-reminder&gt; user message, or a box result, as the conversation chose) where they do not. Child agents never receive it.
system.plan_mode_exit—System prompt appended at the point the user turns plan mode off before approving a plan, carried like system.plan_mode. An approved plan needs no such note: the exit_plan_mode result says so.
system.host_messages—Section of the system prompt of every run whose host messages come as user messages (the conversation's host-message container is user) and whose prompt was assembled with a tool that can start a background task (agent_spawn, workflow, a shell, preview_start), saying what the user-role messages the host writes are: &lt;system-reminder&gt; notices, and background task results as &lt;task-notification&gt; behind Claude Code's [SYSTEM NOTIFICATION - NOT USER INPUT] preamble. None of them is the user speaking. Such a tool enabled after the prompt was assembled without one brings the same text with it, as a system prompt appended where it joins (a &lt;system-reminder&gt; on a model that takes no system message mid-conversation). Where host messages come in box, tool.box.description says it instead.
tool.* 296
键占位符出现在哪里
tool.ls.description—Root description of the ls schema — what the model reads to decide what the tool is. A profile's tools[].description for ls overrides this key.
tool.ls.param.path—Description of ls's path parameter.
tool.ls.param.depth—Description of ls's depth parameter.
tool.grep.description—Root description of the grep schema — what the model reads to decide what the tool is. A profile's tools[].description for grep overrides this key.
tool.grep.param.pattern—Description of grep's pattern parameter.
tool.grep.param.path—Description of grep's path parameter.
tool.grep.param.case_sensitive—Description of grep's case_sensitive parameter.
tool.grep.param.limit—Description of grep's limit parameter.
tool.grep.param.offset—Description of grep's offset parameter.
tool.grep.param.output_mode—Description of grep's output_mode parameter.
tool.grep.param.context—Description of grep's context parameter.
tool.grep.param.before—Description of grep's before parameter.
tool.grep.param.after—Description of grep's after parameter.
tool.grep.param.glob—Description of grep's glob parameter.
tool.find.description—Root description of the find schema — what the model reads to decide what the tool is. A profile's tools[].description for find overrides this key.
tool.find.param.query—Description of find's query parameter.
tool.find.param.path—Description of find's path parameter.
tool.read.description—Root description of the read schema for a model that takes images: it reads text files and shows images, the standard variant (see tool_surface). A profile's tools[].description for read overrides this key.
tool.read.param.path—Description of read's path parameter.
tool.read.param.start_line—Description of read's start_line parameter.
tool.read.param.end_line—Description of read's end_line parameter.
tool.read.text_only.description—Root description of the read schema in its text_only variant (see tool_surface): offered to a model that does not take images, so it reads text files and refuses an image. A profile's tools[].description for read with variant: &quot;text_only&quot; overrides this key.
tool.read.text_only.param.start_line—Description of read's start_line parameter in the text_only variant.
tool.read.text_only.param.end_line—Description of read's end_line parameter in the text_only variant.
tool.lsp.description—Root description of the lsp schema — what the model reads to decide what the tool is. A profile's tools[].description for lsp overrides this key.
tool.lsp.param.operation—Description of lsp's operation parameter.
tool.lsp.param.file_path—Description of lsp's filePath parameter.
tool.lsp.param.line—Description of lsp's line parameter.
tool.lsp.param.character—Description of lsp's character parameter.
tool.lsp.param.query—Description of lsp's query parameter.
tool.write.description—Root description of the write schema while the conversation's file write guards are on: an existing file has to have been read in this conversation first, the standard variant (see tool_surface). A profile's tools[].description for write overrides this key.
tool.write.unguarded.description—Root description of the write schema in its unguarded variant (see tool_surface): offered while the conversation's file write guards are off, so nothing has to have been read first and nothing is refused as stale. A profile's tools[].description for write with variant: &quot;unguarded&quot; overrides this key.
tool.write.param.path—Description of write's path parameter.
tool.write.param.content—Description of write's content parameter.
tool.edit.description—Root description of the edit schema while the conversation's file write guards are on: the file has to have been read in this conversation first, the standard variant (see tool_surface). A profile's tools[].description for edit overrides this key.
tool.edit.unguarded.description—Root description of the edit schema in its unguarded variant (see tool_surface): offered while the conversation's file write guards are off, so nothing has to have been read first and nothing is refused as stale. A profile's tools[].description for edit with variant: &quot;unguarded&quot; overrides this key.
tool.edit.param.path—Description of edit's path parameter.
tool.edit.param.find—Description of edit's find parameter.
tool.edit.param.replace—Description of edit's replace parameter.
tool.edit.param.replace_all—Description of edit's replace_all parameter.
tool.pwsh.description—Root description of the pwsh schema (PowerShell 7) in a top-level run: a background command outlives the turn and wakes an idle conversation, the standard variant (see tool_surface). A profile's tools[].description for pwsh overrides this key.
tool.pwsh.child.description—Root description of the pwsh schema (PowerShell 7) in its child variant (see tool_surface): offered to a child agent, whose background commands are stopped when it gives its final reply. A profile's tools[].description for pwsh with variant: &quot;child&quot; overrides this key.
tool.pwsh.param.command—Description of pwsh's command parameter.
tool.powershell.description—Root description of the powershell schema (Windows PowerShell 5.1) in a top-level run: a background command outlives the turn and wakes an idle conversation, the standard variant (see tool_surface). A profile's tools[].description for powershell overrides this key.
tool.powershell.child.description—Root description of the powershell schema (Windows PowerShell 5.1) in its child variant (see tool_surface): offered to a child agent, whose background commands are stopped when it gives its final reply. A profile's tools[].description for powershell with variant: &quot;child&quot; overrides this key.
tool.powershell.param.command—Description of powershell's command parameter.
tool.bash.description—Root description of the bash schema in a top-level run: a background command outlives the turn and wakes an idle conversation, the standard variant (see tool_surface). A profile's tools[].description for bash overrides this key.
tool.bash.child.description—Root description of the bash schema in its child variant (see tool_surface): offered to a child agent, whose background commands are stopped when it gives its final reply. A profile's tools[].description for bash with variant: &quot;child&quot; overrides this key.
tool.bash.param.command—Description of bash's command parameter.
tool.zsh.description—Root description of the zsh schema in a top-level run: a background command outlives the turn and wakes an idle conversation, the standard variant (see tool_surface). A profile's tools[].description for zsh overrides this key.
tool.zsh.child.description—Root description of the zsh schema in its child variant (see tool_surface): offered to a child agent, whose background commands are stopped when it gives its final reply. A profile's tools[].description for zsh with variant: &quot;child&quot; overrides this key.
tool.zsh.param.command—Description of zsh's command parameter.
tool.sh.description—Root description of the sh schema in a top-level run: a background command outlives the turn and wakes an idle conversation, the standard variant (see tool_surface). A profile's tools[].description for sh overrides this key.
tool.sh.child.description—Root description of the sh schema in its child variant (see tool_surface): offered to a child agent, whose background commands are stopped when it gives its final reply. A profile's tools[].description for sh with variant: &quot;child&quot; overrides this key.
tool.sh.param.command—Description of sh's command parameter.
tool.shell.param.description—Description of the description parameter the shell tools (pwsh, powershell, bash, zsh, sh) share: what the one-sentence summary of a command should say.
tool.shell.param.timeout{default_ms} {max_ms}Description of the timeout parameter the shell tools share; {default_ms} and {max_ms} are the default and the ceiling in milliseconds.
tool.shell.param.run_in_background—Description of the run_in_background parameter the shell tools share.
tool.shell.child.param.run_in_background—Description of the run_in_background parameter the shell tools share, in their child variant: a background command ends with the child's final reply.
tool.web_search.description—Root description of the web_search schema answered by a search provider: the result is a list whose entries carry citable ids, the standard variant (see tool_surface). A profile's tools[].description for web_search overrides this key.
tool.web_search.native.description—Root description of the web_search schema in its native variant (see tool_surface): offered when the conversation's own model runs the search, so the result is its written report and the sites it consulted, with no ids. A profile's tools[].description for web_search with variant: &quot;native&quot; overrides this key.
tool.web_search.param.query—Description of web_search's query parameter.
tool.web_fetch.description—Root description of the web_fetch schema — what the model reads to decide what the tool is. A profile's tools[].description for web_fetch overrides this key.
tool.web_fetch.param.urls—Description of web_fetch's urls parameter.
tool.web_fetch.param.urls.item—Description of each element of web_fetch's urls parameter.
tool.preview_start.description—Root description of the preview_start schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_start overrides this key.
tool.preview_start.param.name—Description of preview_start's name parameter.
tool.preview.param.server_id—Description of the serverId parameter of the preview tools that act on the conversation's page (every preview_* tool except preview_start, preview_stop, preview_logs and preview_list).
tool.preview.param.named_server_id{description}Description of the serverId parameter of the preview tools that address one dev server by its launch.json name (preview_stop, preview_logs); {description} is the lead phrase the tool gives it.
tool.preview_stop.description—Root description of the preview_stop schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_stop overrides this key.
tool.preview_list.description—Root description of the preview_list schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_list overrides this key.
tool.preview_logs.description—Root description of the preview_logs schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_logs overrides this key.
tool.preview_logs.param.level—Description of preview_logs's level parameter.
tool.preview_logs.param.lines—Description of preview_logs's lines parameter.
tool.preview_console_logs.description—Root description of the preview_console_logs schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_console_logs overrides this key.
tool.preview_console_logs.param.level—Description of preview_console_logs's level parameter.
tool.preview_console_logs.param.lines—Description of preview_console_logs's lines parameter.
tool.preview_screenshot.description—Root description of the preview_screenshot schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_screenshot overrides this key.
tool.preview_screenshot.param.scale—Description of preview_screenshot's scale parameter.
tool.preview_snapshot.description—Root description of the preview_snapshot schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_snapshot overrides this key.
tool.preview_inspect.description—Root description of the preview_inspect schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_inspect overrides this key.
tool.preview_inspect.param.selector—Description of preview_inspect's selector parameter.
tool.preview_inspect.param.styles—Description of preview_inspect's styles parameter.
tool.preview_click.description—Root description of the preview_click schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_click overrides this key.
tool.preview_click.param.selector—Description of preview_click's selector parameter.
tool.preview_click.param.uid—Description of preview_click's uid parameter.
tool.preview_click.param.double_click—Description of preview_click's doubleClick parameter.
tool.preview_fill.description—Root description of the preview_fill schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_fill overrides this key.
tool.preview_fill.param.selector—Description of preview_fill's selector parameter.
tool.preview_fill.param.uid—Description of preview_fill's uid parameter.
tool.preview_fill.param.value—Description of preview_fill's value parameter.
tool.preview_eval.description—Root description of the preview_eval schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_eval overrides this key.
tool.preview_eval.param.expression—Description of preview_eval's expression parameter.
tool.preview_network.description—Root description of the preview_network schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_network overrides this key.
tool.preview_network.param.filter—Description of preview_network's filter parameter.
tool.preview_network.param.request_id—Description of preview_network's requestId parameter.
tool.preview_resize.description—Root description of the preview_resize schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_resize overrides this key.
tool.preview_resize.param.preset—Description of preview_resize's preset parameter.
tool.preview_resize.param.width—Description of preview_resize's width parameter.
tool.preview_resize.param.height—Description of preview_resize's height parameter.
tool.preview_resize.param.color_scheme—Description of preview_resize's colorScheme parameter.
tool.preview_upload_image.description—Root description of the preview_upload_image schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_upload_image overrides this key.
tool.preview_upload_image.param.image_id—Description of preview_upload_image's image_id parameter.
tool.preview_upload_image.param.selector—Description of preview_upload_image's selector parameter.
tool.preview_upload_image.param.filename—Description of preview_upload_image's filename parameter.
tool.preview_dialog.description—Root description of the preview_dialog schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_dialog overrides this key.
tool.preview_dialog.param.accept—Description of preview_dialog's accept parameter.
tool.preview_dialog.param.prompt_text—Description of preview_dialog's prompt_text parameter.
tool.preview_dialog.param.button—Description of preview_dialog's button parameter.
tool.preview_input.description—Root description of the preview_input schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_input overrides this key.
tool.preview_input.param.server_id—Description of preview_input's serverId parameter.
tool.preview_input.param.screenshot—Description of preview_input's screenshot parameter.
tool.agent_spawn.description—Root description of the agent_spawn schema on a model without asynchronous tool calls: the call answers with a dispatch receipt, and the result comes later through task_wait or a host notification, the standard variant (see tool_surface). A profile's tools[].description for agent_spawn overrides this key.
tool.agent_spawn.async.description—Root description of the agent_spawn schema in its async variant (see tool_surface): offered to a model that takes asynchronous tool calls, where the call is declared asynchronous, returns nothing at first, and the child's result arrives later as its own output. A profile's tools[].description for agent_spawn with variant: &quot;async&quot; overrides this key.
tool.agent_spawn.param.prompt—Description of agent_spawn's prompt parameter.
tool.agent_spawn.param.agent_type—Description of agent_spawn's agent_type parameter in the static schema, which the model sees only when the conversation's roles could not be read for the request (api::role_policy unknown): no names are listed, and a name is checked when the child is spawned. Once roles are known the parameter carries tool.agent_spawn.param.agent_type_roles and an enum instead, or is removed when there are none.
tool.agent_spawn.param.agent_type_roles—Description of agent_spawn's agent_type parameter when the conversation has roles and the schema lists them as an enum.
tool.agent_spawn.param.name—Description of agent_spawn's name parameter.
tool.agent_spawn.param.label—Description of agent_spawn's label parameter.
tool.agent_spawn.param.context—Description of agent_spawn's context parameter.
tool.agent_spawn.param.schema—Description of agent_spawn's schema parameter.
tool.task_wait.description—Root description of the task_wait schema in a top-level run, the standard variant (see tool_surface). A profile's tools[].description for task_wait overrides this key.
tool.task_wait.child.description—Root description of the task_wait schema in its child variant (see tool_surface): offered to a child agent, which has background commands, terminals and pages to wait on but no children or workflows, and whose commands still running at its final reply are stopped. A profile's tools[].description for task_wait with variant: &quot;child&quot; overrides this key.
tool.task_wait.param.tasks—Description of task_wait's tasks parameter.
tool.task_wait.child.param.tasks—Description of task_wait's tasks parameter in the child variant: what an omitted list waits for in a child agent, which has no children or workflows.
tool.task_wait.param.tasks.item—Description of each element of task_wait's tasks parameter.
tool.task_wait.param.timeout_seconds—Description of task_wait's timeout_seconds parameter.
tool.task_wait.child.param.timeout_seconds—Description of task_wait's timeout_seconds parameter in the child variant: ending the round at the deadline ends the child, and stops what it still runs.
tool.task_list.description—Root description of the task_list schema — what the model reads to decide what the tool is. A profile's tools[].description for task_list overrides this key.
tool.task_stop.description—Root description of the task_stop schema — what the model reads to decide what the tool is. A profile's tools[].description for task_stop overrides this key.
tool.task_stop.param.task—Description of task_stop's task parameter.
tool.send_message.description—Root description of the send_message schema — what the model reads to decide what the tool is. A profile's tools[].description for send_message overrides this key. Declared only to a top-level run whose conversation has subagent communication on and agent_spawn enabled.
tool.send_message.param.to—Description of send_message's to parameter: the name the child was spawned with.
tool.send_message.param.message—Description of send_message's message parameter.
tool.send_message.param.summary—Description of send_message's summary parameter: the short preview the timeline shows.
tool.box.description—Root description of the box schema — what the model reads to decide what the tool is. A profile's tools[].description for box overrides this key. Declared only where the conversation's host messages come in box.
tool.box.param.none—Description of box's none parameter, the one (always empty) argument the host's fabricated calls carry.
tool.read_global_memory.description—Root description of the read_global_memory schema — what the model reads to decide what the tool is. A profile's tools[].description for read_global_memory overrides this key.
tool.read_project_memory.description—Root description of the read_project_memory schema — what the model reads to decide what the tool is. A profile's tools[].description for read_project_memory overrides this key.
tool.create_global_memory.description—Root description of the create_global_memory schema — what the model reads to decide what the tool is. A profile's tools[].description for create_global_memory overrides this key.
tool.create_project_memory.description—Root description of the create_project_memory schema — what the model reads to decide what the tool is. A profile's tools[].description for create_project_memory overrides this key.
tool.edit_global_memory.description—Root description of the edit_global_memory schema — what the model reads to decide what the tool is. A profile's tools[].description for edit_global_memory overrides this key.
tool.edit_project_memory.description—Root description of the edit_project_memory schema — what the model reads to decide what the tool is. A profile's tools[].description for edit_project_memory overrides this key.
tool.memory.param.read_name—Description of the name parameter of read_global_memory and read_project_memory.
tool.memory.param.create_name—Description of the name parameter of create_global_memory and create_project_memory.
tool.memory.param.create_content—Description of the content parameter of create_global_memory and create_project_memory.
tool.memory.param.create_description—Description of the description parameter of create_global_memory and create_project_memory.
tool.memory.param.edit_name—Description of the name parameter of edit_global_memory and edit_project_memory.
tool.memory.param.edit_old_text—Description of the old_text parameter of edit_global_memory and edit_project_memory.
tool.memory.param.edit_new_text—Description of the new_text parameter of edit_global_memory and edit_project_memory.
tool.memory.param.edit_description—Description of the description parameter of edit_global_memory and edit_project_memory.
tool.ask_user.description—Root description of the ask_user schema — what the model reads to decide what the tool is. A profile's tools[].description for ask_user overrides this key.
tool.ask_user.param.questions—Description of ask_user's questions parameter.
tool.ask_user.param.questions.question—Description of ask_user's questions[].question parameter.
tool.ask_user.param.questions.header—Description of ask_user's questions[].header parameter.
tool.ask_user.param.questions.options—Description of ask_user's questions[].options parameter.
tool.ask_user.param.questions.options.label—Description of ask_user's questions[].options[].label parameter.
tool.ask_user.param.questions.options.description—Description of ask_user's questions[].options[].description parameter.
tool.ask_user.param.questions.options.preview—Description of ask_user's questions[].options[].preview parameter.
tool.ask_user.param.questions.multi_select—Description of ask_user's questions[].multiSelect parameter.
tool.ask_user.param.answers—Description of ask_user's answers parameter.
tool.ask_user.param.annotations—Description of ask_user's annotations parameter.
tool.ask_user.param.annotations.preview—Description of ask_user's annotations.preview parameter.
tool.ask_user.param.annotations.notes—Description of ask_user's annotations.notes parameter.
tool.ask_user.param.metadata—Description of ask_user's metadata parameter.
tool.ask_user.param.metadata.source—Description of ask_user's metadata.source parameter.
tool.fork.description—Root description of the fork schema — what the model reads to decide what the tool is. A profile's tools[].description for fork overrides this key.
tool.fork.param.prompt—Description of fork's prompt parameter.
tool.workflow.description—Root description of the workflow schema on a model without asynchronous tool calls: the call answers at once, and the run's return value comes later through task_wait or a host notification, the standard variant (see tool_surface). A profile's tools[].description for workflow overrides this key.
tool.workflow.async.description—Root description of the workflow schema in its async variant (see tool_surface): offered to a model that takes asynchronous tool calls, where the call is declared asynchronous, returns nothing at first, and the run's return value arrives later as its own output. A profile's tools[].description for workflow with variant: &quot;async&quot; overrides this key.
tool.workflow.param.script{signature} {agent_type_clause}Description of workflow's script parameter. {signature} is the agent() signature line and {agent_type_clause} is one of the tool.workflow.param.script.agent_type_* texts.
tool.workflow.param.script.agent_type_unresolved—{agent_type_clause} of tool.workflow.param.script in the static schema, which the model sees only when the conversation's roles could not be read for the request: no $defs.agentType is given, and a name is checked when its step starts.
tool.workflow.param.script.agent_type_none—{agent_type_clause} of tool.workflow.param.script when no role is available to the conversation: none is selected, or none of the selected ones could be loaded.
tool.workflow.param.script.agent_type_optional—{agent_type_clause} of tool.workflow.param.script when roles exist and naming one is optional.
tool.workflow.param.script.agent_type_required—{agent_type_clause} of tool.workflow.param.script when roles exist and every agent() call must name one.
tool.workflow.param.name—Description of workflow's name parameter.
tool.workflow.param.args—Description of workflow's args parameter.
tool.workflow.param.token_budget—Description of workflow's token_budget parameter.
tool.workflow.param.resume_run_id—Description of workflow's resume_run_id parameter.
tool.workflow.defs.agent_type—Description of workflow's $defs.agentType entry, which lists the legal role names for the script's agentType option.
tool.plan.description—Root description of the plan schema — what the model reads to decide what the tool is. A profile's tools[].description for plan overrides this key.
tool.plan.param.action—Description of plan's action parameter.
tool.plan.param.content—Description of plan's content parameter.
tool.exit_plan_mode.description—Root description of the exit_plan_mode schema — what the model reads to decide what the tool is. A profile's tools[].description for exit_plan_mode overrides this key.
tool.read_handoff_note.description—Root description of the read_handoff_note schema — what the model reads to decide what the tool is. A profile's tools[].description for read_handoff_note overrides this key.
tool.read_handoff_note.param.name—Description of read_handoff_note's name parameter.
tool.create_handoff_note.description—Root description of the create_handoff_note schema — what the model reads to decide what the tool is. A profile's tools[].description for create_handoff_note overrides this key.
tool.create_handoff_note.param.name—Description of create_handoff_note's name parameter.
tool.create_handoff_note.param.content—Description of create_handoff_note's content parameter.
tool.create_handoff_note.param.description—Description of create_handoff_note's description parameter.
tool.edit_handoff_note.description—Root description of the edit_handoff_note schema — what the model reads to decide what the tool is. A profile's tools[].description for edit_handoff_note overrides this key.
tool.edit_handoff_note.param.name—Description of edit_handoff_note's name parameter.
tool.edit_handoff_note.param.old_text—Description of edit_handoff_note's old_text parameter.
tool.edit_handoff_note.param.new_text—Description of edit_handoff_note's new_text parameter.
tool.edit_handoff_note.param.description—Description of edit_handoff_note's description parameter.
tool.handoff.description—Root description of the handoff schema — what the model reads to decide what the tool is. A profile's tools[].description for handoff overrides this key.
tool.param.workspace{default}Description of the workspace parameter of the tools that act in a directory, added when the conversation has more than one workspace; {default} is the number a call that names none lands on.
tool.param.workspace_server—Description of the workspace parameter of the tools that address one dev server, added when the conversation has more than one workspace.
tool.param.workspace_shell_suffix{shell}Sentence appended to a shell tool's workspace description when only some workspaces have that shell; {shell} is the shell's name and the leading space belongs to the text.
tool.param.workspace_project_memory—Description of the workspace parameter of the project memory tools, added when the conversation has more than one workspace.
tool.preview_zoom.description—Root description of the preview_zoom schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_zoom overrides this key.
tool.preview_zoom.param.x—Description of preview_zoom's x parameter.
tool.preview_zoom.param.y—Description of preview_zoom's y parameter.
tool.preview_zoom.param.width—Description of preview_zoom's width parameter.
tool.preview_zoom.param.height—Description of preview_zoom's height parameter.
tool.screen.param.server_id{screen}Description of the serverId parameter of the remote-control screen tools (preview_zoom, preview_wait, screen_*, android_*), which all act on one remote-control screen; {screen} is what that screen is: remote-control screen, Android device, iPhone or iPad, iPhone, iPad or desktop or Android device.
tool.preview_wait.description—Root description of the preview_wait schema — what the model reads to decide what the tool is. A profile's tools[].description for preview_wait overrides this key.
tool.preview_wait.param.until—Description of preview_wait's until parameter.
tool.preview_wait.param.timeout—Description of preview_wait's timeout parameter.
tool.preview_wait.param.x—Description of preview_wait's x parameter.
tool.preview_wait.param.y—Description of preview_wait's y parameter.
tool.preview_wait.param.width—Description of preview_wait's width parameter.
tool.preview_wait.param.height—Description of preview_wait's height parameter.
tool.screen_app.description—Root description of the screen_app schema — what the model reads to decide what the tool is. A profile's tools[].description for screen_app overrides this key.
tool.screen_app.param.action—Description of screen_app's action parameter.
tool.screen_app.param.app—Description of screen_app's app parameter.
tool.screen_app.param.url—Description of screen_app's url parameter.
tool.screen_app.param.filter—Description of screen_app's filter parameter.
tool.screen_app.param.limit—Description of screen_app's limit parameter.
tool.screen_app.param.scope—Description of screen_app's scope parameter.
tool.screen_app.param.activity—Description of screen_app's activity parameter.
tool.screen_app.param.restart—Description of screen_app's restart parameter.
tool.screen_app.param.arguments—Description of screen_app's arguments parameter.
tool.screen_app.param.environment—Description of screen_app's environment parameter.
tool.screen_device.description—Root description of the screen_device schema — what the model reads to decide what the tool is. A profile's tools[].description for screen_device overrides this key.
tool.screen_device.param.action—Description of screen_device's action parameter.
tool.screen_device.param.value—Description of screen_device's value parameter.
tool.screen_device.param.sections—Description of screen_device's sections parameter.
tool.screen_device.param.latitude—Description of screen_device's latitude parameter.
tool.screen_device.param.longitude—Description of screen_device's longitude parameter.
tool.screen_clipboard.description—Root description of the screen_clipboard schema — what the model reads to decide what the tool is. A profile's tools[].description for screen_clipboard overrides this key.
tool.screen_clipboard.param.action—Description of screen_clipboard's action parameter.
tool.screen_clipboard.param.text—Description of screen_clipboard's text parameter.
tool.screen_package.description—Root description of the screen_package schema — what the model reads to decide what the tool is. A profile's tools[].description for screen_package overrides this key.
tool.screen_package.param.action—Description of screen_package's action parameter.
tool.screen_package.param.path—Description of screen_package's path parameter.
tool.screen_package.param.app—Description of screen_package's app parameter.
tool.screen_package.param.permission—Description of screen_package's permission parameter.
tool.screen_package.param.keep_data—Description of screen_package's keep_data parameter.
tool.screen_package.param.replace_existing—Description of screen_package's replace_existing parameter.
tool.screen_package.param.downgrade—Description of screen_package's downgrade parameter.
tool.screen_package.param.grant_permissions—Description of screen_package's grant_permissions parameter.
tool.android_logcat.description—Root description of the android_logcat schema — what the model reads to decide what the tool is. A profile's tools[].description for android_logcat overrides this key.
tool.android_logcat.param.lines—Description of android_logcat's lines parameter.
tool.android_logcat.param.level—Description of android_logcat's level parameter.
tool.android_logcat.param.tag—Description of android_logcat's tag parameter.
tool.android_logcat.param.package—Description of android_logcat's package parameter.
tool.android_logcat.param.buffer—Description of android_logcat's buffer parameter.
tool.android_logcat.param.contains—Description of android_logcat's contains parameter.
tool.android_shell.description—Root description of the android_shell schema — what the model reads to decide what the tool is. A profile's tools[].description for android_shell overrides this key.
tool.android_shell.param.command—Description of android_shell's command parameter.
tool.android_shell.param.timeout—Description of android_shell's timeout parameter.
tool.ls_limit{limit} {depth}Line of an ls result the character budget cut, naming the depth down to which the listing is complete.
tool.ls_limit_partial{limit}Line of an ls result the character budget cut partway through the first level.
tool.ls_ignored_note—Line of an ls result that listed ignored directories without expanding them.
tool.ls_empty—ls result for an empty directory.
tool.ignored_entry{path}An ignored entry in an ls or find result: a directory ls did not expand, a match find listed last.
tool.grep_skipped{error}Line in a grep or ls result for an entry that could not be read.
tool.grep_limit{from} {to} {next}Last line of a grep page when more matches follow, with the offset of the next page.
tool.grep_no_match—grep result when nothing matched.
tool.grep_no_match_at_offset{offset} {count}grep result when the requested offset is past the last match.
tool.grep_count_total{matches} {files}Last line of a grep result in count mode: the matching lines and files of the whole search, not only of the page.
tool.grep_context_unavailable—Line of a remote grep result that was asked for context lines but ran on a machine whose grep cannot print them unambiguously.
tool.find_limit{shown} {total}Line of a find result that returned only some of its matches.
tool.find_ignored_note{count}Line of a find result some of whose matches are in ignored paths, listed last.
tool.find_scan_limit{limit}Line of a find result that stopped examining entries, so its total is a floor.
tool.find_no_match—find result when nothing matched.
tool.read_image{path} {mime} {width} {height} {bytes}read result for an image file (the image itself is attached).
tool.read_empty_file—read result for a file with no content.
tool.read_range_out_of_bounds{total}read result when the requested start line is past the end of the file, with the file's line count.
tool.read_limit{from} {to} {total} {next}Last line of a read result that stopped before the end of the file or of the requested range.
tool.read_limit_uncounted{from} {to} {next}Last line of a read result that stopped early in a file too large to count the lines of.
tool.read_line_truncated{omitted}Marker closing a line of a read result that was cut because the line alone is more than one read can return.
tool.read_lossy_note—Last line of a read result decoded lossily because the file is not valid UTF-8.
tool.read_utf16_note{encoding}Last line of a read result decoded from UTF-16, which edit cannot modify.
tool.read_binary{path}read error for a file that holds binary data rather than text.
tool.write_done{bytes} {path}write result. The default is a bare acknowledgement; the values stay available to a profile that wants to name the file.
tool.edit_done{path}edit result. The default is a bare acknowledgement; the value stays available to a profile that wants to name the file.
tool.edit_done_all{path} {count}edit result with replace_all: how many occurrences were replaced. The default leaves out the file; the value stays available to a profile that wants to name it.
tool.file_state_current—Suffix on a write/edit result while the conversation's file write guards are on: the model need not read the file back. Never sent with the guards off.
tool.file_changed_notice{path} {snippet}Notice that a file the model read or wrote changed on disk — behind its back between rounds, or by a PostToolUse hook right after its write/edit — with every changed region rendered with line numbers. The model's copy then counts as current, so its next write/edit of the file goes through; a text that leaves out {snippet} shows it nothing and gets the omitted notice instead. Part of the file write guards: never sent with them off.
tool.file_changed_omitted{path}The same notice when the changes cannot all be shown (too large, the round's snippet budget spent, or the earlier text no longer remembered). The model's copy is then out of date, so its next write/edit of the file is refused until it reads the file again.
tool.shell_stale_read_hint{count} {files}Suffix on a shell result after a formatter-looking command changed files the model had read. Part of the file write guards: never sent with them off.
tool.shell_stale_read_more{count}Tail of the file list in the shell stale-read hint once more than five files changed.
tool.shell_cwd_outside_workspace{directory} {workspace} {root}Suffix on a successful shell result whose command ended outside its workspace, so the next command there starts at the workspace root.
tool.shell_output_omitted{size}Line standing in for the middle of a command's output, past what is kept of its start and end.
tool.shell_user_aborted—Shell result when the user aborted the command.
tool.shell_exit_unknown—Stands in for the exit code when the process reported none.
tool.shell_completed{code}Status line of a finished shell command that printed nothing.
tool.shell_exit_code{code}Leading line of a failed shell result, before its stderr and stdout.
tool.shell_timed_out{seconds}Shell result when the deadline expired and the running command could not be moved to the background (its run was going away), so it was stopped.
tool.shell_left_running_stopped—Closes the result of a command that finished while processes it started still held its output, when those could not be moved to the background and were stopped.
tool.output_truncated—Suffix when a tool result was cut to the output limit.
tool.output_spilled{size} {path} {preview_size} {preview}What a shell or grep result too long to return whole becomes: where the full output was saved, and its start.
tool.diff_truncated—Suffix when a write/edit diff was cut to the limit.
subagent.* 22
键占位符出现在哪里
subagent.addendum—Addendum appended (after a --- separator) to the system prompt of every spawned subagent and workflow step. What depends on the conversation's subagent communication is marked with the child's update tool, which a child holds only while that is on: {?subagent_update}…{/} wraps what only such a child is told (that the main agent's later messages reach it and carry instructions, and the sentence telling it to report progress with the update tool), {!subagent_update}…{/} what every other child is told instead.
subagent.addendum.browser_note—Item added to the end of subagent.addendum's notes list when the child holds a preview_* tool, which acts on the browser session it shares with the conversation.
subagent.addendum.shell_note—Item added last to subagent.addendum's notes list when the child holds a shell tool: how its commands run in the background and that they stop with its final reply.
subagent.update_tool_description—Schema description of the child-only subagent_update tool.
subagent.update_message_description—Schema description of subagent_update.message.
subagent.update_ack—Tool result a child receives after a successful subagent_update call.
subagent.structured_output_root_seed—Root description of the child-only structured_output tool when the spawning schema has none.
subagent.structured_output_lifecycle—Sentence appended to every structured_output schema description.
subagent.structured_output_nudge—User context injected once when a schema-bound child ends a round without calling structured_output.
subagent.structured_output_settled—Tool result of a valid structured_output call.
subagent.structured_output_rejected{error} {attempt} {max_attempts}Tool result of a structured_output call that failed schema validation.
subagent.structured_output_exhausted{max_attempts}Final assistant text of a child whose structured_output calls failed validation too many times.
subagent.missing_structured_output—Notice prepended to a schema-bound child's final text when it never called structured_output.
subagent.failed{reason}Result envelope body (or suffix) when a child's model request failed.
subagent.failed_unknown_reason—Reason used in subagent.failed when the host has none.
subagent.no_text_result—Result envelope body when a child finished without any text.
subagent.result_truncated—Suffix appended when a child's final text was cut to the output limit.
subagent.forced_stop{name}Result envelope body when the host force-stopped a child that ignored a stop request.
subagent.worker_panic—Result envelope body when a task worker crashed.
subagent.structured_result_block{body}Fenced block appended to a result envelope that carries a structured result.
subagent.structured_unserializable—Body of subagent.structured_result_block when the value cannot be serialized.
subagent.structured_truncated—Suffix inside subagent.structured_result_block when the value was cut to the inline limit.
skill.* 6
键占位符出现在哪里
skill.tool_description—Schema description of the on-demand skill tool.
skill.name_description—Schema description of skill.name.
skill.listing_heading—Heading of the skill trigger list in the system prompt.
skill.listing_row{name} {trigger}One row of the skill trigger list.
skill.listing_row_untriggered{name}One row of the skill trigger list for a skill whose SKILL.md gives no description to use as its trigger. It is listed anyway: the skill tool serves it, and skill.name_description tells the model the names are in its context.
skill.result{directory} {body}Tool result of a successful skill call.
tool_search.* 8
键占位符出现在哪里
tool_search.tool_description—Schema description of the tool_search tool, exposed whenever a run is holding MCP tool schemas back. It has to teach the whole mechanism: that the announced names have no parameter schema until they are fetched, that the result is a &lt;functions&gt; block in the same encoding as the tool list at the top of the prompt, and the three query forms.
tool_search.query_description—Schema description of tool_search.query.
tool_search.max_results_description—Schema description of tool_search.max_results.
tool_search.announcement{tools}Context injected at the head of every step of a run that withheld MCP tool schemas; {tools} is one tool_search.announcement_row per withheld tool. Announcing the names is what makes them findable — the model cannot search for a capability it has never heard of.
tool_search.announcement_row{server} {names}One row of the withheld-tool announcement: every tool one server declared. Grouping by server is what makes a keyword query like +slack reach them.
tool_search.result{functions}Tool result of a tool_search call that matched something; {functions} is the &lt;functions&gt; block carrying one &lt;function&gt; line per matched tool.
tool_search.no_match{query} {total}Tool result of a tool_search call that matched nothing.
tool_search.not_loaded{name}Rejection returned when the model calls an MCP tool whose schema this run has not handed out yet. Repairable on purpose: it names the call that fixes it.
role.* 2
键占位符出现在哪里
role.listing_heading—Heading of the agent-role list appended to the agent_spawn / workflow tool description.
role.listing_row{name} {description}One row of the agent-role list.
task.* 76
键占位符出现在哪里
task.wait_timeout_all_pending{seconds} {pending} {max_seconds}Leading notice of a task_wait result that timed out before any named task settled.
task.wait_timeout_partial{seconds} {delivered} {pending} {max_seconds}Leading notice of a task_wait result that timed out with some results delivered.
task.wait_pending_fallback—Stands in for {pending} when the wait named no specific task.
task.wait_idle—task_wait result when nothing is running and nothing is waiting to be collected.
task.progress_update_label—Status word of a progress-update envelope: [agent · progress update].
task.no_text_result—Body of a result envelope whose task returned no text.
task.cost_line{tokens} {tool_uses} {duration_ms}Footer line of a result envelope in a task_wait result.
task.cost_unknown_tokens—Stands in for {tokens} when the provider reported no usage.
task.wait_delivered_on_call—Body of a task_wait result section whose task's result went to the asynchronous call that started it, as that call's output, rather than into the wait's own result.
task.wait_status_heading—Heading of the status roll-up that ends a task_wait result. The renderer recognizes the built-in English heading, and the Chinese one in transcripts older builds wrote.
task.status.completed—Status word of a completed task.
task.status.interrupted—Status word of an interrupted task.
task.status.failed—Status word of a failed task.
task.status.stopped—Status word of a task stopped by the user.
task.status.round_limit—Status word of a task that hit its round limit.
task.status.running—Status word of a running task.
task.status.idle—Status word of a subagent that finished its turn and is waiting.
task.list_empty—task_list result when the conversation has no tasks.
task.list_total{total}First line of a non-empty task_list result.
task.list_row_label{label}Suffix of a task_list row (and a task_wait observation) carrying the task's label.
task.list_latest_update{update}Line under a task_list row showing the task's latest progress update.
task.list_result_in_timeline—Suffix of a task_list status for a finished task whose result is in the timeline.
task.group.subagents—task_list group title for subagents.
task.group.workflows—task_list group title for workflow runs.
task.group.terminals—task_list group title for terminals.
task.group.shell_commands—task_list group title for background shell commands.
task.group.preview_servers—task_list group title for dev servers.
task.preview.starting—Status of a dev server that is still coming up.
task.preview.running—Status of a dev server that is answering.
task.preview.stopped—Status of a dev server that is no longer registered.
task.terminal.running—Status of a terminal with a running command.
task.terminal.idle—Status of an idle terminal.
task.terminal.exited—Status of a terminal whose shell exited.
task.terminal.closed—Status of a closed terminal.
task.shell.completed{code}Status of a background command that exited successfully.
task.shell.failed{code}Status of a background command that exited with an error.
task.shell.aborted—Status of a background command that was aborted.
task.shell.aborting—Status of a background command that is being aborted.
task.shell.running—Status of a running background command.
task.shell.finished—Status of a background command that finished without an exit code.
task.shell_result{shell_ref} {tool_name} {exit} {body}Result envelope body of a finished background shell command.
task.shell_exit_code{code}Stands in for {exit} when the exit code is known.
task.shell_exit_unknown—Stands in for {exit} when the exit code is unknown.
task.shell_no_output—Stands in for {body} when the command produced no output.
task.shell_stopped_by_user{shell_ref} {tool_name} {body}Result envelope body of a background command the user stopped, carrying whatever it printed first.
task.shell_stopped_by_model{shell_ref} {tool_name} {body}Result envelope body of a background command the model itself stopped with task_stop, carrying whatever it printed first.
task.shell_failed_to_run{shell_ref} {error}Result envelope body of a background command that failed to execute.
task.shell_timeout_backgrounded{shell_ref} {seconds}Receipt of a foreground command that ran out of time and was adopted by a task slot instead of being stopped.
task.shell_timeout_backgrounded_file{shell_ref} {seconds} {path}Same receipt when the command's output is being written to a file, which it names.
task.shell_left_running{shell_ref}Closes the result of a foreground command that finished while processes it started still held its output; those were adopted by a task slot instead of being waited on.
task.shell_left_running_file{shell_ref} {path}Same note when the command's output, and what those processes print later, is being written to a file, which it names.
task.shell_left_running_result{shell_ref} {tool_name} {body}Result envelope body once the processes a command left running (see task.shell_left_running) have exited, carrying only what they printed after the command's own result.
task.shell_background_receipt{shell_ref} {path}Receipt of a command started with run_in_background: its task address, and the file its output is written to while it runs.
task.shell_output_file{path}Names the file a still-running background command writes its output to, in a task_wait timeout and under its task_list row.
task.shell_output_file_earlier_lost{size}First line of a command's output file when the command was moved to the background after the live buffer had already dropped its earliest output.
task.shell_output_file_limit{size}Last line of a command's output file once it has reached its size limit.
task.stop_stopped{task} {detail}Result of a task_stop call that stopped a task: the task's address and what it was running.
task.send.queued{to}Result of a send_message call that put its message in front of a child still running: {to} is the child's name. Nothing starts; the child reads the message before its next model request.
task.send.resumed{to}Result of a send_message call to a child that had finished and was delivered: the child is resumed in the background with its full earlier context and the message. {to} is the child's name. Its new result arrives like any task result.
task.send.result_pending{to}Refusal of a send_message call to a child that has just finished but whose result has not reached the model yet. Nothing changed. {to} is the child's name.
task.send.user_stopped{to}Refusal of a send_message call to a child the user stopped, which is not resumed. {to} is the child's name.
task.send.unknown_target{to}Refusal of a send_message call naming no child agent of this conversation. {to} is the name the call gave.
task.send.not_an_agent{to}Refusal of a send_message call naming a task that is not a child agent (a workflow run, a shell command, a dev server). {to} is the name or address the call gave.
task.output_truncated—Suffix appended when a task result was cut to the output limit.
task.stopped_by_user—Sentence appended to a task's result when the user closed that task from the sidebar.
task.stopped_by_model—Sentence appended to a task's result when the model itself stopped that task with task_stop.
task.box_no_op—Tool result of a box call the model made itself; the tool is a host carrier and does nothing when called.
task.notification.completed{task}&lt;summary&gt; of a completed-task notification.
task.notification.failed{task}&lt;summary&gt; of a failed-task notification.
task.notification.round_limit{task}&lt;summary&gt; of a round-limit notification.
task.notification.interrupted{task}&lt;summary&gt; of an interrupted-task notification.
task.notification.stopped{task}&lt;summary&gt; of a stopped-task notification.
task.restart_summary{task}&lt;summary&gt; of the notification delivered when an application exit lost a subagent before its result reached the model.
task.restart_notice{task} {last_output}Body of the notification delivered when an application exit lost a subagent before its result reached the model. {last_output} is task.restart_last_output or task.restart_no_output.
task.restart_last_output{text}Stands in for {last_output} with the last text the lost subagent wrote.
task.restart_no_output—Stands in for {last_output} when the lost subagent had written no text.
fork.* 1
键占位符出现在哪里
fork.request_submitted—Tool result of fork when the request was raised for the user to decide.
handoff.* 6
键占位符出现在哪里
handoff.armed_notice—The instruction to write handoff notes and call handoff, given at the round boundary where the context crosses the auto-compact threshold: a mid-conversation system message where the model and endpoint take one, otherwise a host message (a &lt;system-reminder&gt; user message, or a box result). Either way it is all the model is told.
handoff.index_context{notes}The handoff notes a continuation inherited. On a model that reads its tools ahead of its system prompt it is a system card, the system prompt's last section; on any other it is handed over once at the first round boundary, right behind the opening message — as a mid-conversation system message where the model and endpoint take one, otherwise as a host message (a &lt;system-reminder&gt; user message, or a box result). {notes} is one - name — description line per note.
handoff.start_message—The host's first user message in a continuation: what its first run is asked to do.
handoff.note_created{name}Tool result of a successful create_handoff_note call.
handoff.note_updated{name}Tool result of a successful edit_handoff_note call.
handoff.completed{title}Tool result of a successful handoff call. {title} is the continuation's title.
host_notice.* 5
键占位符出现在哪里
host_notice.output_truncated—The host message sent when a response was cut off at the output limit: the instruction to continue. As a user message it is sent as is, without a &lt;system-reminder&gt;, as Claude Code sends its own; in box it is the result.
host_notice.hook_context{event} {context}The host message carrying a hook's additionalContext, in Claude Code's wording. {event} is the hook's lifecycle event and {context} what it added.
host_notice.mcp_unavailable{servers}The host message sent when selected MCP servers could not be used at the start of a turn. {servers} is one system.capability_row per server, its description being why it could not be used.
host_notice.instruction_skips{files}The host message listing instruction files (MEWRK.md, rules, imports) a run left out. {files} has one line per file, - &lt;file&gt;: &lt;reason&gt;, the reason being one of the instruction_skip.* texts.
host_notice.preview_start_failed{name} {error}The host message sent when a dev server the user started from the preview pane failed to start. {name} is the server's name in .mewrk/launch.json and {error} the error the start gave, which is what the pane showed the user.
instruction_skip.* 8
键占位符出现在哪里
instruction_skip.too_large—Reason in that list: the file is larger than one instruction file may be.
instruction_skip.over_total_size—Reason: the file would take the run past the size all instruction files together may take.
instruction_skip.over_file_count—A line of its own, naming no file: the run already reads as many instruction files as it may.
instruction_skip.not_utf8—Reason: the file is not valid UTF-8 text.
instruction_skip.secret—Reason: the file looks like it contains a credential or other secret.
instruction_skip.import_missing—Reason: an import of a file that does not exist or is not a file.
instruction_skip.import_unsupported—Reason: an import Mewrk does not follow: a URL or ~ path, a cycle, or one nested too deep.
instruction_skip.unreadable—Reason: the file could not be read.
web.* 10
键占位符出现在哪里
web.executor_system_prompt{budget_line}System prompt of the isolated executor that runs a provider-native web_search.
web.executor_budget_unlimited—{budget_line} when the conversation sets no search cap.
web.executor_budget_limited{max_searches}{budget_line} when the conversation caps searches per call.
web.executor_task{query}User message given to the isolated web-search executor.
web.fetch_executor_system_prompt—System prompt of the isolated executor that runs a provider-native web_fetch. Its prose is discarded: the host reads the retrieved pages out of the tool results, so this only has to make the executor call the tool once per URL.
web.fetch_executor_task{urls}User message given to the isolated web-fetch executor, carrying the URLs to retrieve one per line.
web.search_warnings{warnings}Line appended to native findings when the provider reported search failures.
web.findings_notice—notice field of the JSON result of a native web_search. Empty by default, and then the field is omitted entirely; fill it in to label the findings as untrusted.
web.results_notice—notice field of the JSON result of a catalog-provider web_search or a web_fetch. Empty by default, and then the field is omitted entirely; fill it in to label the results as untrusted.
web.untrusted_marker—Prefix put in front of a retrieved line that looks like an instruction. Empty by default, so such a line is passed through unmarked; the control characters a line could hide behind are stripped either way.
memory.* 7
键占位符出现在哪里
memory.context_intro—First line inside the &lt;mewrk-memory&gt; block that carries each enabled tier's MEMORY.md.
memory.tier.global—Name of the global memory tier.
memory.tier.project—Name of the project memory tier.
memory.tier.project_of_workspace{workspace} {path}Name of one workspace's project memory when the conversation has more than one workspace, each with its own; it heads that workspace's index in the memory block. {workspace} is the number and {path} the folder.
memory.index_heading{tier}Heading above a tier's MEMORY.md inside the memory block.
memory.created{tier} {name}Tool result of a successful create_*_memory call.
memory.updated{tier} {name}Tool result of a successful edit_*_memory call.
project_memory.* 1
键占位符出现在哪里
project_memory.untrusted_banner—Banner inside the project-instructions block (MEWRK.md / AGENTS.md style files found in the workspace).
hook.* 8
键占位符出现在哪里
hook.session_start_blocked{reason}Assistant text written when a SessionStart hook blocked the turn.
hook.user_prompt_blocked{reason}Assistant text written when a UserPromptSubmit hook blocked the turn.
hook.blocked_by{name}Reason given to the model when a hook denied a tool call without a reason of its own.
hook.continue_fallback—User context injected when a Stop hook asks to continue without giving a reason.
hook.stop_limit_reached{limit}Assistant text written when a Stop hook asked to continue too many times in a row.
hook.stop_skipped_definition_revoked{error}Assistant text written when the Stop hook was skipped because the named agent's definition was revoked.
hook.post_tool_not_rolled_back{reason} {tool}Tool result substituted when a PostToolUse hook rejects a call whose effects cannot be rolled back.
hook.interrupted_call_skipped—Tool result of a call that was not executed because a hook interrupted the turn.
mcp.* 1
键占位符出现在哪里
mcp.mandatory_description_prefix—Prefix of the tool description of an MCP tool that requires user interaction on every call.
run.* 1
键占位符出现在哪里
run.no_text_reply—Assistant text written when the model ended a turn without any text.
workflow.* 16
键占位符出现在哪里
workflow.not_recoverable—Line appended to a workflow receipt when its run directory could not be created.
workflow.aborted_cancelled—Result of a workflow run that was cancelled or whose turn ended.
workflow.aborted_channel{detail}Result of a workflow run aborted by a host event-channel failure.
workflow.resume_hint{run_id}Line appended to a failed workflow result explaining how to resume it.
workflow.resume_degraded{run_id}Resume hint used when journal writes failed, so a resume replays nothing.
workflow.resume_repeated_warning{count}Line appended to a resume hint when steps kept starting without ever finishing.
workflow.losers_cancelled{count} {steps}Progress note written when the script returned while steps were still running.
workflow.step_no_structured—Error of a workflow step that finished without returning its required structured result.
workflow.step_ended_with{status}Error of a workflow step that ended in a non-completed status.
workflow.step_preview_truncated—Suffix of a step output preview in the workflow timeline context.
workflow.step_no_result—Error of a workflow step that produced no result.
workflow.step_not_started—Error of a workflow step that had not started when the run was aborted.
workflow.restart_summary{task}&lt;summary&gt; of the notification delivered when a workflow run was interrupted by an application restart.
workflow.restart_notice{task} {script} {reusable_steps} {run_id} {reason}Body of the notification delivered when a workflow run was interrupted by an application restart and the host could not resume it.
workflow.restart_resumed_summary{task}&lt;summary&gt; of the notification delivered when the host resumed a workflow run an application restart interrupted.
workflow.restart_resumed{task} {script} {reusable_steps}Body of the notification delivered when the host resumed a workflow run an application restart interrupted.
format.* 1
键占位符出现在哪里
format.list_separator—Separator used when the host joins names into a list (hook names, task addresses, status roll-ups).