Every tool says its `sessions` (chat, agent or both). The file tools read, write, edit, glob, grep and list are shared; mkdir, mv, rm, search, python and the forge verbs (commit, branch, pr, merge, tag, release) are the chat's; show and recall are new and shared. New fields: `requires` (page, display, forge) with the exact `unavailable` answer, and `confirm: always` for merge, tag and release. knowledge_*, notes_search, note_view and note_manage leave the chat. Default rules for the new tools; modes.json says what `confirm` does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"name": "grep",
|
|
"scope": "shared",
|
|
"sessions": "both",
|
|
"risk": "read",
|
|
"exclusive": false,
|
|
"block": "search",
|
|
"purpose": "purpose",
|
|
"aliases": {
|
|
"cli": [],
|
|
"llembas": []
|
|
},
|
|
"description": "Search file contents with a regular expression (ripgrep syntax), or plain text with `literal: true`. Honours .gitignore.\nReturns `path:line:text`, at most 200 matches. Filter files with `include` (e.g. `*.ts`, `*.{ts,tsx}`).",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pattern": {
|
|
"type": "string",
|
|
"description": "Regular expression"
|
|
},
|
|
"path": {
|
|
"description": "File or directory to search (default: working directory)",
|
|
"type": "string"
|
|
},
|
|
"include": {
|
|
"description": "Glob of files to search",
|
|
"type": "string"
|
|
},
|
|
"ignore_case": {
|
|
"type": "boolean"
|
|
},
|
|
"literal": {
|
|
"description": "Match the pattern as plain text, not a regular expression",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"pattern"
|
|
]
|
|
}
|
|
}
|