Search draft files
search_draft_filesFind theme files in a Fudge draft. With pattern, search contents by regular expression; without it, list files matching paths globs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"draft": "<draft>",
"paths": "<paths>"
},
"name": "search_draft_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | The draft’s fudge://project/… ref. | |
| paths | Yes | Files, folders or glob patterns, e.g. ["sections", "snippets/*price*.liquid"]. | |
| store | No | The connected store to use. Omit when only one is connected. | |
| pattern | No | Regular expression (RE2 syntax: no lookarounds or backreferences) to search for in those files. |