Search the NAS
searchLocates files and document text in a Synology NAS index, returning JSON paths and pagination offsets so AI agents can report where content is stored.
Instructions
Search the NAS by file name and document text. Returns JSON with hits (name, share_path, path, size, is_dir, modified_utc) and next_offset. Tell the user locations with share_path. total is always null; more results exist when next_offset is not null, so pass it as offset to get the next page, or use max_results to collect several pages at once. If the index changes between pages, deduplicate by share_path. One search can take from a few seconds to several minutes; avoid many calls in a row. If nothing is found, try a shorter query or other spellings (full-width/half-width, English/Japanese). Errors: exit_code 2 = fix the arguments, 4 = retry once (scan_limit continues where it stopped), 5 = NAS or network down, 6 = unexpected response, 8 = no search session (ask the user to start it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per call (1-100) | |
| query | Yes | Search words, sent to the NAS as is | |
| offset | No | Start position: next_offset from the last result | |
| max_results | No | Page automatically and collect up to this many results (limit is then ignored) |