| 1 | [ |
| 2 | { |
| 3 | "Name": "ask", |
| 4 | "Description": "Ask the user one or more multiple-choice questions when you hit a decision that is genuinely theirs to make — one you can't resolve from the request, the code, or sensible defaults. The frontend shows the options for the user to pick; their choices are returned to you. Prefer this over asking in prose for any real fork (which approach, which library, scope). Don't use it for decisions with an obvious default — pick the sensible option and proceed. Permission presets do not answer these questions for the user. Each question has a short `header` (a tab label), the `question` text, 2-4 `options` (each a `label` and optional `description`; put any recommended option first), and `multiSelect` when more than one may apply.", |
| 5 | "ReadOnly": true, |
| 6 | "Schema": { |
| 7 | "properties": { |
| 8 | "decision_id": { |
| 9 | "description": "Required when reopening a previously accepted decision; cite the original decision_id.", |
| 10 | "type": "string" |
| 11 | }, |
| 12 | "new_evidence": { |
| 13 | "description": "Required with decision_id when asking again after the user already accepted a consequence.", |
| 14 | "type": "string" |
| 15 | }, |
| 16 | "questions": { |
| 17 | "description": "1-3 related questions to ask together. Same ambiguity is asked only once.", |
| 18 | "items": { |
| 19 | "properties": { |
| 20 | "header": { |
| 21 | "description": "Very short label for the question (a tab title), e.g. \"Library\".", |
| 22 | "type": "string" |
| 23 | }, |
| 24 | "multiSelect": { |
| 25 | "description": "Allow selecting more than one option.", |
| 26 | "type": "boolean" |
| 27 | }, |
| 28 | "options": { |
| 29 | "description": "The choices. Put any recommended option first.", |
| 30 | "items": { |
| 31 | "properties": { |
| 32 | "description": { |
| 33 | "description": "Optional one-line explanation of the choice.", |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "label": { |
| 37 | "description": "The choice text (concise).", |
| 38 | "type": "string" |
| 39 | } |
| 40 | }, |
| 41 | "required": [ |
| 42 | "label" |
| 43 | ], |
| 44 | "type": "object" |
| 45 | }, |
| 46 | "maxItems": 4, |
| 47 | "minItems": 2, |
| 48 | "type": "array" |
| 49 | }, |
| 50 | "question": { |
| 51 | "description": "The full question to ask.", |
| 52 | "type": "string" |
| 53 | } |
| 54 | }, |
| 55 | "required": [ |
| 56 | "header", |
| 57 | "options", |
| 58 | "question" |
| 59 | ], |
| 60 | "type": "object" |
| 61 | }, |
| 62 | "maxItems": 3, |
| 63 | "minItems": 1, |
| 64 | "type": "array" |
| 65 | } |
| 66 | }, |
| 67 | "required": [ |
| 68 | "questions" |
| 69 | ], |
| 70 | "type": "object" |
| 71 | } |
| 72 | }, |
| 73 | { |
| 74 | "Name": "compress", |
| 75 | "Description": "Compress a selected part of the current model-visible conversation without deleting visible history. Use only when the user explicitly asks for context compression. Choose `before` to summarize everything before the uniquely matched user turn while keeping that turn and later context, or `after` to summarize from that turn through the last completed turn while keeping the active turn. The anchor must be an exact, unique excerpt from a real user message; use a longer excerpt if the tool reports multiple matches.", |
| 76 | "ReadOnly": true, |
| 77 | "Schema": { |
| 78 | "additionalProperties": false, |
| 79 | "properties": { |
| 80 | "anchor": { |
| 81 | "description": "An exact, unique excerpt from one real user message in the current model-visible conversation.", |
| 82 | "maxLength": 512, |
| 83 | "minLength": 1, |
| 84 | "type": "string" |
| 85 | }, |
| 86 | "direction": { |
| 87 | "description": "Which side of the anchor user turn to compress.", |
| 88 | "enum": [ |
| 89 | "before", |
| 90 | "after" |
| 91 | ], |
| 92 | "type": "string" |
| 93 | }, |
| 94 | "focus": { |
| 95 | "description": "Optional guidance about facts or decisions the summary must preserve.", |
| 96 | "maxLength": 2000, |
| 97 | "type": "string" |
| 98 | } |
| 99 | }, |
| 100 | "required": [ |
| 101 | "anchor", |
| 102 | "direction" |
| 103 | ], |
| 104 | "type": "object" |
| 105 | } |
| 106 | }, |
| 107 | { |
| 108 | "Name": "create_goal", |
| 109 | "Description": "Create one persisted same-session goal when the current direct human request is a long-running objective that should continue across autonomous rounds. You may infer that intent without requiring the user to name goal mode. Do not use this for routine single-turn work.", |
| 110 | "ReadOnly": false, |
| 111 | "Schema": { |
| 112 | "additionalProperties": false, |
| 113 | "properties": { |
| 114 | "max_goal_rounds": { |
| 115 | "anyOf": [ |
| 116 | { |
| 117 | "minimum": 1, |
| 118 | "type": "integer" |
| 119 | }, |
| 120 | { |
| 121 | "type": "null" |
| 122 | } |
| 123 | ], |
| 124 | "description": "Optional positive automatic-round limit; omit or null for unlimited." |
| 125 | }, |
| 126 | "objective": { |
| 127 | "minLength": 1, |
| 128 | "type": "string" |
| 129 | } |
| 130 | }, |
| 131 | "required": [ |
| 132 | "objective" |
| 133 | ], |
| 134 | "type": "object" |
| 135 | } |
| 136 | }, |
| 137 | { |
| 138 | "Name": "edit_file", |
| 139 | "Description": "Replace an exact string in a file with another. old_string must occur exactly once; add surrounding context to disambiguate. Use for targeted edits instead of rewriting the whole file.", |
| 140 | "ReadOnly": false, |
| 141 | "Schema": { |
| 142 | "properties": { |
| 143 | "new_string": { |
| 144 | "description": "Replacement text (may be empty to delete)", |
| 145 | "type": "string" |
| 146 | }, |
| 147 | "old_string": { |
| 148 | "description": "Exact text to replace (must be unique in the file)", |
| 149 | "type": "string" |
| 150 | }, |
| 151 | "path": { |
| 152 | "description": "File path", |
| 153 | "type": "string" |
| 154 | } |
| 155 | }, |
| 156 | "required": [ |
| 157 | "new_string", |
| 158 | "old_string", |
| 159 | "path" |
| 160 | ], |
| 161 | "type": "object" |
| 162 | } |
| 163 | }, |
| 164 | { |
| 165 | "Name": "get_goal", |
| 166 | "Description": "Read the current same-session goal, including its exact id/revision, objective, phase, admitted rounds, optional round limit, blocker reason, and live activation. Call this before update_goal.", |
| 167 | "ReadOnly": true, |
| 168 | "Schema": { |
| 169 | "additionalProperties": false, |
| 170 | "properties": {}, |
| 171 | "type": "object" |
| 172 | } |
| 173 | }, |
| 174 | { |
| 175 | "Name": "job_kill", |
| 176 | "Description": "Request cancellation of a running background job by job id. Returns immediately; the process tree settles as killed once shutdown completes.", |
| 177 | "ReadOnly": false, |
| 178 | "Schema": { |
| 179 | "properties": { |
| 180 | "job_id": { |
| 181 | "description": "Job id returned by the tool that started the background work.", |
| 182 | "type": "string" |
| 183 | }, |
| 184 | "reason": { |
| 185 | "description": "Optional short reason for stopping the job.", |
| 186 | "type": "string" |
| 187 | } |
| 188 | }, |
| 189 | "required": [ |
| 190 | "job_id" |
| 191 | ], |
| 192 | "type": "object" |
| 193 | } |
| 194 | }, |
| 195 | { |
| 196 | "Name": "job_output", |
| 197 | "Description": "Read output from a background job. Reads are non-blocking unless wait=true; every response includes the current status. Do not busy-poll a running job.", |
| 198 | "ReadOnly": true, |
| 199 | "Schema": { |
| 200 | "properties": { |
| 201 | "filter": { |
| 202 | "description": "Optional regular expression; only matching lines of new output are returned.", |
| 203 | "type": "string" |
| 204 | }, |
| 205 | "job_id": { |
| 206 | "description": "Job id returned by the tool that started the background work.", |
| 207 | "type": "string" |
| 208 | }, |
| 209 | "timeout_ms": { |
| 210 | "description": "Maximum wait in milliseconds. Defaults to 30000 and is capped at 600000.", |
| 211 | "maximum": 600000, |
| 212 | "minimum": 1, |
| 213 | "type": "integer" |
| 214 | }, |
| 215 | "wait": { |
| 216 | "description": "Wait until the job finishes or timeout_ms elapses. A timeout leaves the job running.", |
| 217 | "type": "boolean" |
| 218 | } |
| 219 | }, |
| 220 | "required": [ |
| 221 | "job_id" |
| 222 | ], |
| 223 | "type": "object" |
| 224 | } |
| 225 | }, |
| 226 | { |
| 227 | "Name": "pwsh", |
| 228 | "Description": "Execute one PowerShell command in an isolated process and return combined stdout/stderr. The host prefers PowerShell 7 and can fall back to Windows PowerShell 5.1, so use syntax accepted by both:\n - chaining: ';' runs both commands; use 'if ($?) { ... }' for conditional execution.\n - redirect/vars: $null not /dev/null; $env:VAR not $VAR; '2\u003e$null' drops stderr.\n - file ops: Get-ChildItem (ls), Get-Content (cat), Remove-Item -Recurse -Force (rm -rf), Copy-Item (cp), Select-String (grep).\n - no head/tail/which/touch: use Select-Object -First/-Last N, (Get-Command x).Source, New-Item.\n - services/watchers: set run_in_background=true and manage the returned job id with job_output/job_kill.\n - multi-line text to a native exe (e.g. git commit -m): use a single-quoted here-string @'...'@ (closing '@ at column 0). Use for builds, tests, git, package managers, etc. To search/read/list/edit/move files, prefer the dedicated tools (grep, read_file, ls, glob, edit_file, move_file) over shell grep/cat/ls/find/sed/mv/Move-Item — they behave identically on every OS. For symbol search or architecture questions, prefer LSP/read tools and targeted grep before shell commands.", |
| 229 | "ReadOnly": false, |
| 230 | "Schema": { |
| 231 | "properties": { |
| 232 | "additional_write_dirs": { |
| 233 | "description": "Directories this command must write outside the workspace. Directories only, no globs. Accepts absolute paths, workspace-relative paths, ~, and ${HOME}. Request the smallest set needed; the host will not infer paths from the command text.", |
| 234 | "items": { |
| 235 | "type": "string" |
| 236 | }, |
| 237 | "type": "array" |
| 238 | }, |
| 239 | "command": { |
| 240 | "description": "PowerShell command to execute", |
| 241 | "type": "string" |
| 242 | }, |
| 243 | "denial_id": { |
| 244 | "description": "Host-issued denial identifier required when retrying with danger-full-access.", |
| 245 | "type": "string" |
| 246 | }, |
| 247 | "description": { |
| 248 | "description": "Clear 5-10 word active-voice description shown in the UI", |
| 249 | "type": "string" |
| 250 | }, |
| 251 | "justification": { |
| 252 | "description": "Required when additional_write_dirs or sandbox_permissions is set. Explain why the access is needed.", |
| 253 | "type": "string" |
| 254 | }, |
| 255 | "run_in_background": { |
| 256 | "description": "Run without a foreground timeout and return a pwsh job id immediately. Read it with job_output or stop it with job_kill.", |
| 257 | "type": "boolean" |
| 258 | }, |
| 259 | "sandbox_permissions": { |
| 260 | "description": "Optional per-call permission escalation. Use workspace-write for an authorized write while the session is read-only. danger-full-access is accepted only after a host-recorded denial and explicit authorization.", |
| 261 | "enum": [ |
| 262 | "workspace-write", |
| 263 | "danger-full-access" |
| 264 | ], |
| 265 | "type": "string" |
| 266 | }, |
| 267 | "timeout_ms": { |
| 268 | "description": "Optional foreground timeout in milliseconds, capped by the configured shell timeout", |
| 269 | "minimum": 1, |
| 270 | "type": "integer" |
| 271 | } |
| 272 | }, |
| 273 | "required": [ |
| 274 | "command", |
| 275 | "description" |
| 276 | ], |
| 277 | "type": "object" |
| 278 | } |
| 279 | }, |
| 280 | { |
| 281 | "Name": "read_file", |
| 282 | "Description": "Read one bounded text window with optional line offset/limit. Output prefixes each line with its 1-based number. Any successful window observes the current file version for later structured edits. Use the next-window hint to page only when more content is useful. Legacy intent and cursor fields are accepted as navigation hints and never create a whole-file completion requirement.", |
| 283 | "ReadOnly": true, |
| 284 | "Schema": { |
| 285 | "properties": { |
| 286 | "cursor": { |
| 287 | "description": "Optional continuation cursor from a prior result. Invalid legacy cursors should be replaced with an explicit offset and limit.", |
| 288 | "type": "string" |
| 289 | }, |
| 290 | "intent": { |
| 291 | "description": "Compatibility hint. Every value reads only this bounded window and creates no whole-file obligation.", |
| 292 | "enum": [ |
| 293 | "inspect", |
| 294 | "range", |
| 295 | "full" |
| 296 | ], |
| 297 | "type": "string" |
| 298 | }, |
| 299 | "limit": { |
| 300 | "description": "Maximum lines to return (default 2000)", |
| 301 | "minimum": 1, |
| 302 | "type": "integer" |
| 303 | }, |
| 304 | "offset": { |
| 305 | "description": "0-based line offset to start reading from (default 0)", |
| 306 | "minimum": 0, |
| 307 | "type": "integer" |
| 308 | }, |
| 309 | "path": { |
| 310 | "description": "File path", |
| 311 | "type": "string" |
| 312 | } |
| 313 | }, |
| 314 | "required": [ |
| 315 | "path" |
| 316 | ], |
| 317 | "type": "object" |
| 318 | } |
| 319 | }, |
| 320 | { |
| 321 | "Name": "todo_write", |
| 322 | "Description": "Replace the current turn's complete task list. Send the full flat list on every call; an empty list clears it. Items may be reordered, removed, replanned, or have any number in progress. Each item contains only content and status (pending|in_progress|completed).", |
| 323 | "ReadOnly": true, |
| 324 | "Schema": { |
| 325 | "additionalProperties": false, |
| 326 | "properties": { |
| 327 | "todos": { |
| 328 | "description": "The complete flat task list for this turn. Replaces the previous list; [] clears it.", |
| 329 | "items": { |
| 330 | "additionalProperties": false, |
| 331 | "properties": { |
| 332 | "content": { |
| 333 | "description": "Task text. Leading and trailing whitespace is removed.", |
| 334 | "minLength": 1, |
| 335 | "type": "string" |
| 336 | }, |
| 337 | "status": { |
| 338 | "enum": [ |
| 339 | "pending", |
| 340 | "in_progress", |
| 341 | "completed" |
| 342 | ], |
| 343 | "type": "string" |
| 344 | } |
| 345 | }, |
| 346 | "required": [ |
| 347 | "content", |
| 348 | "status" |
| 349 | ], |
| 350 | "type": "object" |
| 351 | }, |
| 352 | "type": "array" |
| 353 | } |
| 354 | }, |
| 355 | "required": [ |
| 356 | "todos" |
| 357 | ], |
| 358 | "type": "object" |
| 359 | } |
| 360 | }, |
| 361 | { |
| 362 | "Name": "update_goal", |
| 363 | "Description": "Update the exact current goal revision. edit, pause, and resume require current direct-human authority; complete and blocked are also allowed during the exact autonomous goal round. There is no continue action: leaving an active goal unchanged continues it automatically.", |
| 364 | "ReadOnly": false, |
| 365 | "Schema": { |
| 366 | "additionalProperties": false, |
| 367 | "properties": { |
| 368 | "action": { |
| 369 | "enum": [ |
| 370 | "edit", |
| 371 | "pause", |
| 372 | "resume", |
| 373 | "complete", |
| 374 | "blocked" |
| 375 | ], |
| 376 | "type": "string" |
| 377 | }, |
| 378 | "blocked_reason": { |
| 379 | "description": "Concrete blocker; required only for blocked.", |
| 380 | "minLength": 1, |
| 381 | "type": "string" |
| 382 | }, |
| 383 | "goal_id": { |
| 384 | "minLength": 1, |
| 385 | "type": "string" |
| 386 | }, |
| 387 | "max_goal_rounds": { |
| 388 | "anyOf": [ |
| 389 | { |
| 390 | "minimum": 1, |
| 391 | "type": "integer" |
| 392 | }, |
| 393 | { |
| 394 | "type": "null" |
| 395 | } |
| 396 | ], |
| 397 | "description": "Replacement limit for edit; null removes the limit." |
| 398 | }, |
| 399 | "objective": { |
| 400 | "description": "Replacement objective; valid only for edit.", |
| 401 | "minLength": 1, |
| 402 | "type": "string" |
| 403 | }, |
| 404 | "revision": { |
| 405 | "minimum": 1, |
| 406 | "type": "integer" |
| 407 | } |
| 408 | }, |
| 409 | "required": [ |
| 410 | "action", |
| 411 | "goal_id", |
| 412 | "revision" |
| 413 | ], |
| 414 | "type": "object" |
| 415 | } |
| 416 | }, |
| 417 | { |
| 418 | "Name": "use_capability", |
| 419 | "Description": "Fixed-schema capability proxy. Prefer search(query, limit\u003c=8), then inspect one exact capability, then call it. list is a compact diagnostic inventory only. Supports stable ids such as tool:grep, skill:review, mcp-tool:server/tool, task:subagent, workflow:name, and web:/lsp:/session:/memory: namespaces. memory:remember saves facts (description+body required; activation=\"relevant\" on create; omit activation on update; \"pinned\" only if user asks); memory:forget(name); tool:memory(operation=search|read|list). decline records a reason for a prefer capability. Independent list/search/inspect calls are read-only and may be issued together. Calls keep the provider-visible schema fixed; real writers still pass permission, plan mode, sandbox, write-path, and workspace-lease checks.", |
| 420 | "ReadOnly": true, |
| 421 | "Schema": { |
| 422 | "additionalProperties": false, |
| 423 | "properties": { |
| 424 | "action": { |
| 425 | "description": "Use search for discovery, inspect one exact result, then call. list is diagnostic only.", |
| 426 | "enum": [ |
| 427 | "list", |
| 428 | "search", |
| 429 | "inspect", |
| 430 | "call", |
| 431 | "decline" |
| 432 | ], |
| 433 | "type": "string" |
| 434 | }, |
| 435 | "arguments": { |
| 436 | "description": "Raw MCP tool arguments for action=call", |
| 437 | "type": "object" |
| 438 | }, |
| 439 | "capability_id": { |
| 440 | "description": "Capability id such as skill:review, mcp-server:github, or mcp-tool:github/search_issues. Not required for action=list.", |
| 441 | "type": "string" |
| 442 | }, |
| 443 | "cursor": { |
| 444 | "description": "Opaque cursor returned by action=list. It is valid only for the same catalog version.", |
| 445 | "type": "string" |
| 446 | }, |
| 447 | "limit": { |
| 448 | "description": "Maximum results. Search defaults to 5 and allows at most 8; list defaults to 50 and allows at most 100.", |
| 449 | "maximum": 100, |
| 450 | "minimum": 1, |
| 451 | "type": "integer" |
| 452 | }, |
| 453 | "query": { |
| 454 | "description": "Local catalog query required for action=search. No process or network is started.", |
| 455 | "type": "string" |
| 456 | }, |
| 457 | "reason": { |
| 458 | "description": "Required non-empty reason when action=decline", |
| 459 | "type": "string" |
| 460 | } |
| 461 | }, |
| 462 | "required": [ |
| 463 | "action" |
| 464 | ], |
| 465 | "type": "object" |
| 466 | } |
| 467 | }, |
| 468 | { |
| 469 | "Name": "view_image", |
| 470 | "Description": "Read a local PNG, JPEG, GIF, or WebP image by path and return visual content through native vision or the configured image-understanding model. Use this for image paths instead of read_file. Maximum file size: 3 MiB; maximum dimensions: 40 million pixels.", |
| 471 | "ReadOnly": true, |
| 472 | "Schema": { |
| 473 | "properties": { |
| 474 | "path": { |
| 475 | "description": "Image file path", |
| 476 | "type": "string" |
| 477 | } |
| 478 | }, |
| 479 | "required": [ |
| 480 | "path" |
| 481 | ], |
| 482 | "type": "object" |
| 483 | } |
| 484 | }, |
| 485 | { |
| 486 | "Name": "write_file", |
| 487 | "Description": "Write content to a file at the given path (overwriting existing content). Creates parent directories as needed.", |
| 488 | "ReadOnly": false, |
| 489 | "Schema": { |
| 490 | "properties": { |
| 491 | "content": { |
| 492 | "description": "Full content to write", |
| 493 | "type": "string" |
| 494 | }, |
| 495 | "path": { |
| 496 | "description": "File path", |
| 497 | "type": "string" |
| 498 | } |
| 499 | }, |
| 500 | "required": [ |
| 501 | "content", |
| 502 | "path" |
| 503 | ], |
| 504 | "type": "object" |
| 505 | } |
| 506 | } |
| 507 | ] |
| 508 |