Search files in storage
search_storage_filesFind files in a bucket (all folders at once) by part of the name, extension, size or date, and optionally by text inside them. With text set, it also reads the matching text files (txt, md, csv, json, log, html, xml, yaml, sql, code; up to 1 MB each, at most 30 files per call) and returns the matching lines with line numbers, in one call. Results are newest first by upload date, so the first is the latest version; say its date. Narrow with prefix or extension for big buckets.
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": {
"service_id": "<service_id>",
"region": "<region>",
"bucket": "<bucket>"
},
"name": "search_storage_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Words to look for inside text files (not case sensitive). | |
| limit | No | Files to return (default 25). | |
| bucket | Yes | Bucket name (3-63 lowercase letters, digits, dots, hyphens). | |
| prefix | No | Only look inside this folder, e.g. "reports/". | |
| region | Yes | Region code from storage_plans or storage_overview, e.g. fra (Frankfurt), usa (Virginia), sgp (Singapore). | |
| extension | No | File type without the dot, e.g. csv. | |
| max_bytes | No | ||
| min_bytes | No | ||
| service_id | Yes | Object Storage service id, as returned by the matching list tool. | |
| name_contains | No | Part of the file name or path (not case sensitive). | |
| modified_after | No | Only files changed on or after this date (YYYY-MM-DD). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| files | No | ||
| matched | No | ||
| matches | No | ||
| scanned | No | ||
| truncated | No |