AI makes mistakes! Undisk makes recovery instant: every write is versioned, every file is reversible.
See it heal →

What it does

Search across all file contents in the Undisk workspace. By default uses case-sensitive substring matching. Supports regex mode and case-insensitive search. Returns matching file metadata (path, name, size, lastModified). Each result includes a browser_url — a permanent link the human user can open in their browser to view the file. Use this to find files when you don’t know the exact path. Results are capped at 100 matches. Set context_lines to include matching line snippets in results.

Required scope

files:read

Parameters

ParameterTypeRequiredDescription
patternstringYesText pattern to search for across file contents. Interpreted as regex when regex is true.
pathstringNoDirectory scope to search within (omit to search entire workspace)
regexbooleanNoWhen true, treat pattern as a regular expression. Default: false.
case_sensitivebooleanNoWhen false, match case-insensitively. Default: true.
context_linesnumberNoNumber of lines of context to include around each match (0–10). When > 0, results include a matches array where each entry has line (1-based line number of the match itself) and content (the matched line plus surrounding context lines). Default: 0 (no snippets).