Open Kioku Search Files
search_filesFind files by name, path, or content keywords using the indexed search. Switch to graph mode for graph-node documents.
Instructions
Search indexed file names and contents for specific keywords or file path patterns, returning ranked file matches with path, size, and language metadata. Set mode=graph to search graph-node documents through the same index. Use when the target is a file path, filename, or file-content keyword rather than a code symbol. Set mode=graph to search indexed graph-node documents. Do NOT use for browsing all files without a query (use list_files), for code snippet search (use search_code), or for exact regex line matching (use regex_search). This is read-only and searches the local Tantivy index only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Search mode. 'code' (default) searches file names and contents; 'graph' searches indexed graph-node documents including entity names and properties. | |
| limit | No | Maximum number of file results to return. Defaults to 20, capped at 100. | |
| query | Yes | The search query to match against file paths and file contents. Accepts filenames, directory fragments, or content keywords. | |
| offset | No | Number of matching file results to skip before returning. Defaults to 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | Wrapped non-object output, used for Markdown, TOON, or scalar responses. |