| 1 | [ |
| 2 | { |
| 3 | "name": "create_goal", |
| 4 | "description": "Start the session's persistent goal for an objective needing more than one turn or verified completion, even if the user did not say \"goal\". Not for questions or one-shot edits. Work continues across turns until verified complete, blocked, or stopped. This call records the goal; prose records nothing. Keep the full objective. No confirmation needed (the user sees a receipt and can /goal pause or clear). Only one unfinished goal at a time.", |
| 5 | "input_schema": { |
| 6 | "additionalProperties": false, |
| 7 | "properties": { |
| 8 | "objective": { |
| 9 | "description": "The full objective to pursue. Keep the complete user goal, not a shortened one-turn version.", |
| 10 | "type": "string" |
| 11 | }, |
| 12 | "token_budget": { |
| 13 | "description": "Only set if the user gave a budget.", |
| 14 | "minimum": 0, |
| 15 | "type": "integer" |
| 16 | } |
| 17 | }, |
| 18 | "required": [ |
| 19 | "objective" |
| 20 | ], |
| 21 | "type": "object" |
| 22 | }, |
| 23 | "allowed_callers": [ |
| 24 | "direct" |
| 25 | ], |
| 26 | "defer_loading": false |
| 27 | }, |
| 28 | { |
| 29 | "name": "edit", |
| 30 | "description": "Edit one file with targeted text replacements. Every edits[].oldText must identify a unique, non-overlapping region of the original file. Merge nearby or overlapping changes into one edit.", |
| 31 | "input_schema": { |
| 32 | "additionalProperties": false, |
| 33 | "properties": { |
| 34 | "edits": { |
| 35 | "description": "One or more disjoint replacements, all matched against the original file.", |
| 36 | "items": { |
| 37 | "additionalProperties": false, |
| 38 | "properties": { |
| 39 | "newText": { |
| 40 | "description": "Replacement text; may be empty to delete the matched span.", |
| 41 | "type": "string" |
| 42 | }, |
| 43 | "oldText": { |
| 44 | "description": "Text identifying one unique region to replace.", |
| 45 | "type": "string" |
| 46 | } |
| 47 | }, |
| 48 | "required": [ |
| 49 | "newText", |
| 50 | "oldText" |
| 51 | ], |
| 52 | "type": "object" |
| 53 | }, |
| 54 | "type": "array" |
| 55 | }, |
| 56 | "path": { |
| 57 | "description": "Path to the file to edit (relative or absolute).", |
| 58 | "type": "string" |
| 59 | } |
| 60 | }, |
| 61 | "required": [ |
| 62 | "edits", |
| 63 | "path" |
| 64 | ], |
| 65 | "type": "object" |
| 66 | }, |
| 67 | "allowed_callers": [ |
| 68 | "direct" |
| 69 | ], |
| 70 | "defer_loading": false |
| 71 | }, |
| 72 | { |
| 73 | "name": "file_search", |
| 74 | "description": "Find workspace files by name, path, or glob (e.g. src/**/*.rs). Space-separated terms must all match. Literal matches rank above fuzzy matches; results return {files, total_matches, truncated}. Respects ignore files and skips build/dependency directories and hidden dot-directories by default (search inside one by setting path to it or naming it in the query). Use extensions to filter suffixes.", |
| 75 | "input_schema": { |
| 76 | "properties": { |
| 77 | "exclude": { |
| 78 | "description": "Extra exclusion globs appended to the defaults (e.g. [\"fixtures/**\"]) unless replace_default_excludes=true.", |
| 79 | "items": { |
| 80 | "type": "string" |
| 81 | }, |
| 82 | "type": "array" |
| 83 | }, |
| 84 | "extensions": { |
| 85 | "description": "Optional list of file extensions to include (e.g. [\"rs\", \"md\"]).", |
| 86 | "items": { |
| 87 | "type": "string" |
| 88 | }, |
| 89 | "type": "array" |
| 90 | }, |
| 91 | "limit": { |
| 92 | "description": "Maximum number of ranked results to return (default: 20, maximum: 200).", |
| 93 | "type": "integer" |
| 94 | }, |
| 95 | "path": { |
| 96 | "description": "Optional base path to search (relative to workspace).", |
| 97 | "type": "string" |
| 98 | }, |
| 99 | "query": { |
| 100 | "description": "File name, path fragment, space-separated terms, or glob (e.g. **/engine*.rs).", |
| 101 | "type": "string" |
| 102 | }, |
| 103 | "replace_default_excludes": { |
| 104 | "description": "If true, exclude replaces the default build/dependency exclusions instead of appending (default: false).", |
| 105 | "type": "boolean" |
| 106 | } |
| 107 | }, |
| 108 | "required": [ |
| 109 | "query" |
| 110 | ], |
| 111 | "type": "object" |
| 112 | }, |
| 113 | "allowed_callers": [ |
| 114 | "direct" |
| 115 | ], |
| 116 | "defer_loading": false |
| 117 | }, |
| 118 | { |
| 119 | "name": "grep_files", |
| 120 | "description": "Search for a regex pattern in workspace files. The pure-Rust search skips common non-code directories by default (additional exclude globs append unless replace_default_excludes=true). Supports mode=\"matches\" (default, 0 context lines unless context_lines is set), \"files_only\", and \"count\".", |
| 121 | "input_schema": { |
| 122 | "properties": { |
| 123 | "case_insensitive": { |
| 124 | "description": "Whether to perform case-insensitive matching (default: false)", |
| 125 | "type": "boolean" |
| 126 | }, |
| 127 | "context_lines": { |
| 128 | "description": "Context lines before and after each match (default: 0).", |
| 129 | "type": "integer" |
| 130 | }, |
| 131 | "exclude": { |
| 132 | "description": "Extra exclusion globs appended to defaults (unless replace_default_excludes=true).", |
| 133 | "items": { |
| 134 | "type": "string" |
| 135 | }, |
| 136 | "type": "array" |
| 137 | }, |
| 138 | "include": { |
| 139 | "description": "Glob patterns for files to include (e.g., ['*.rs', '*.ts'])", |
| 140 | "items": { |
| 141 | "type": "string" |
| 142 | }, |
| 143 | "type": "array" |
| 144 | }, |
| 145 | "max_results": { |
| 146 | "description": "Max matches (or files in files_only/count) to return (default: 100, max: 1000).", |
| 147 | "maximum": 1000, |
| 148 | "type": "integer" |
| 149 | }, |
| 150 | "mode": { |
| 151 | "description": "Output mode: \"matches\" (default, matching lines), \"files_only\" (unique matching file paths), or \"count\" (per-file match counts).", |
| 152 | "enum": [ |
| 153 | "matches", |
| 154 | "files_only", |
| 155 | "count" |
| 156 | ], |
| 157 | "type": "string" |
| 158 | }, |
| 159 | "path": { |
| 160 | "description": "Directory or file to search (relative to workspace, default: .)", |
| 161 | "type": "string" |
| 162 | }, |
| 163 | "pattern": { |
| 164 | "description": "Regular expression pattern to search for", |
| 165 | "type": "string" |
| 166 | }, |
| 167 | "replace_default_excludes": { |
| 168 | "description": "If true, exclude replaces the default non-code directory exclusions instead of appending (default: false).", |
| 169 | "type": "boolean" |
| 170 | } |
| 171 | }, |
| 172 | "required": [ |
| 173 | "pattern" |
| 174 | ], |
| 175 | "type": "object" |
| 176 | }, |
| 177 | "allowed_callers": [ |
| 178 | "direct" |
| 179 | ], |
| 180 | "defer_loading": false |
| 181 | }, |
| 182 | { |
| 183 | "name": "list_dir", |
| 184 | "description": "List entries in a workspace directory, bounded and sandbox-aware.", |
| 185 | "input_schema": { |
| 186 | "properties": { |
| 187 | "path": { |
| 188 | "description": "Path to inspect (relative to workspace, absolute, or ~/ home-relative; default: .)", |
| 189 | "type": "string" |
| 190 | } |
| 191 | }, |
| 192 | "type": "object" |
| 193 | }, |
| 194 | "allowed_callers": [ |
| 195 | "direct" |
| 196 | ], |
| 197 | "defer_loading": false |
| 198 | }, |
| 199 | { |
| 200 | "name": "load_skill", |
| 201 | "description": "Load a named skill's SKILL.md body and companion file list into this turn. There is no skills index in the prompt: pass query=\"...\" to search names, aliases, and descriptions, or name=\"list\" for project and Codewhale skills. Use include_external=true to list global compatible skills too. Load the matching skill by name before starting that work. Resolves global and plugin skills that `read` cannot reach.", |
| 202 | "input_schema": { |
| 203 | "additionalProperties": false, |
| 204 | "properties": { |
| 205 | "include_external": { |
| 206 | "description": "Include individual global compatible skills in the list instead of only their counts.", |
| 207 | "type": "boolean" |
| 208 | }, |
| 209 | "name": { |
| 210 | "description": "Skill id to load. Omit or pass \"list\" for the compact catalogue, or \"list-all\" to include global compatible skills.", |
| 211 | "type": "string" |
| 212 | }, |
| 213 | "query": { |
| 214 | "description": "Words matched against skill names, aliases, and descriptions, including global compatible skills.", |
| 215 | "type": "string" |
| 216 | } |
| 217 | }, |
| 218 | "type": "object" |
| 219 | }, |
| 220 | "allowed_callers": [ |
| 221 | "direct" |
| 222 | ], |
| 223 | "defer_loading": false |
| 224 | }, |
| 225 | { |
| 226 | "name": "present", |
| 227 | "description": "Declare existing workspace files as final deliverables and return a handoff receipt. Read-only: the files are not modified, moved, copied, or uploaded. For each of 1-32 workspace-relative paths it records the display path, byte length, and SHA-256. Call it after finishing an artifact so the tool call is the presentation point. It does not create a delivery folder or a second artifact store.", |
| 228 | "input_schema": { |
| 229 | "properties": { |
| 230 | "files": { |
| 231 | "description": "Workspace-relative paths of existing regular files to present (1-32, no duplicates).", |
| 232 | "items": { |
| 233 | "minLength": 1, |
| 234 | "type": "string" |
| 235 | }, |
| 236 | "maxItems": 32, |
| 237 | "minItems": 1, |
| 238 | "type": "array" |
| 239 | }, |
| 240 | "note": { |
| 241 | "description": "Optional short note about the presented artifacts.", |
| 242 | "type": "string" |
| 243 | } |
| 244 | }, |
| 245 | "required": [ |
| 246 | "files" |
| 247 | ], |
| 248 | "type": "object" |
| 249 | }, |
| 250 | "allowed_callers": [ |
| 251 | "direct" |
| 252 | ], |
| 253 | "defer_loading": false |
| 254 | }, |
| 255 | { |
| 256 | "name": "read", |
| 257 | "description": "Read a file. Returns a header with line range, total lines, byte size, and truncated flag followed by 1-based numbered lines (`N: <line>`), up to 2000 lines per call within a 51200-byte output cap; a line longer than 2000 chars is truncated with a marker. Use offset and limit to read a line range or continue a large file; the footer names the next offset. For PDFs, text is extracted when pdftotext is installed and optional pages (e.g. \"1-5\" or \"10\") selects a page range. PNG/JPEG/GIF/WebP return as visible image content on vision-capable routes (large images downscaled); read an image instead of OCR or screenshots, and use `read_media` for crop regions or explicit detail levels.", |
| 258 | "input_schema": { |
| 259 | "additionalProperties": false, |
| 260 | "properties": { |
| 261 | "limit": { |
| 262 | "description": "Maximum number of lines to return. Defaults to 2000.", |
| 263 | "type": "number" |
| 264 | }, |
| 265 | "offset": { |
| 266 | "description": "Line number to start reading from (1-indexed).", |
| 267 | "type": "number" |
| 268 | }, |
| 269 | "pages": { |
| 270 | "description": "Optional PDF page range (e.g. \"1-5\" or \"10\"); ignored for non-PDF files.", |
| 271 | "type": "string" |
| 272 | }, |
| 273 | "path": { |
| 274 | "description": "Path to the file to read (relative or absolute).", |
| 275 | "type": "string" |
| 276 | } |
| 277 | }, |
| 278 | "required": [ |
| 279 | "path" |
| 280 | ], |
| 281 | "type": "object" |
| 282 | }, |
| 283 | "allowed_callers": [ |
| 284 | "direct" |
| 285 | ], |
| 286 | "defer_loading": false |
| 287 | }, |
| 288 | { |
| 289 | "name": "todo_write", |
| 290 | "description": "Replace the To-do list the user watches. For any task with three or more steps or more than one file, write the list before you start, keep exactly one item in_progress, and mark items done as you finish them. Skip it only for a single quick answer or edit.", |
| 291 | "input_schema": { |
| 292 | "properties": { |
| 293 | "todos": { |
| 294 | "description": "The complete list of To-do items. This replaces the existing list.", |
| 295 | "items": { |
| 296 | "properties": { |
| 297 | "content": { |
| 298 | "description": "The task description", |
| 299 | "type": "string" |
| 300 | }, |
| 301 | "status": { |
| 302 | "description": "Task status", |
| 303 | "enum": [ |
| 304 | "pending", |
| 305 | "in_progress", |
| 306 | "completed", |
| 307 | "cancelled" |
| 308 | ], |
| 309 | "type": "string" |
| 310 | } |
| 311 | }, |
| 312 | "required": [ |
| 313 | "content", |
| 314 | "status" |
| 315 | ], |
| 316 | "type": "object" |
| 317 | }, |
| 318 | "type": "array" |
| 319 | } |
| 320 | }, |
| 321 | "required": [ |
| 322 | "todos" |
| 323 | ], |
| 324 | "type": "object" |
| 325 | }, |
| 326 | "allowed_callers": [ |
| 327 | "direct" |
| 328 | ], |
| 329 | "defer_loading": false |
| 330 | }, |
| 331 | { |
| 332 | "name": "write", |
| 333 | "description": "Write content to a file. Creates the file if it does not exist, overwrites it if it does, and creates parent directories automatically.", |
| 334 | "input_schema": { |
| 335 | "additionalProperties": false, |
| 336 | "properties": { |
| 337 | "content": { |
| 338 | "description": "Content to write to the file.", |
| 339 | "type": "string" |
| 340 | }, |
| 341 | "line_ending": { |
| 342 | "description": "Default: preserve existing endings. Explicit lf/crlf converts CRLF and lone CR.", |
| 343 | "enum": [ |
| 344 | "preserve", |
| 345 | "lf", |
| 346 | "crlf" |
| 347 | ], |
| 348 | "type": "string" |
| 349 | }, |
| 350 | "path": { |
| 351 | "description": "Path to the file to write (relative or absolute).", |
| 352 | "type": "string" |
| 353 | } |
| 354 | }, |
| 355 | "required": [ |
| 356 | "content", |
| 357 | "path" |
| 358 | ], |
| 359 | "type": "object" |
| 360 | }, |
| 361 | "allowed_callers": [ |
| 362 | "direct" |
| 363 | ], |
| 364 | "defer_loading": false |
| 365 | }, |
| 366 | { |
| 367 | "type": "execute_tools_20260918", |
| 368 | "name": "execute_tools", |
| 369 | "description": "Run a JavaScript program over tools; only its return value comes back. Use it for MCP tools, tools not in your list, and dependent or batched calls. `tools.search(query)`, `tools.list(namespace?)` and `tools.describe(names)` return names, TypeScript signatures and summaries; `tools.call(name, args)` or `tools.<server>.<op>(args)` runs one. Entries marked direct_only cannot run in a program: `tools.load(names)` adds their schemas to your next step. Every nested call passes the same permission checks as a direct call; an approval pauses the program and a denial throws. Results are {content, metadata, truncated}; when truncated is set, content is partial: page the rest with retrieve_tool_result {ref: truncated.ref, mode: 'json'}. 4 calls run at once; the return value is capped at 16 KiB.", |
| 370 | "input_schema": { |
| 371 | "type": "object", |
| 372 | "properties": { |
| 373 | "code": { |
| 374 | "type": "string", |
| 375 | "description": "JavaScript program. The return value (or thrown error) becomes the result; use tools.list/tools.search/tools.describe for discovery and tools.call(name, argsObject) or tools.<namespace>.<op>(argsObject) for tool calls." |
| 376 | } |
| 377 | }, |
| 378 | "required": [ |
| 379 | "code" |
| 380 | ] |
| 381 | }, |
| 382 | "allowed_callers": [ |
| 383 | "direct" |
| 384 | ], |
| 385 | "defer_loading": false, |
| 386 | "cache_control": { |
| 387 | "type": "ephemeral" |
| 388 | } |
| 389 | } |
| 390 | ] |
| 391 |