Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Search Tools

Both tools default to sweeping every workspace root: the working directory, plus any extra folders an ACP client supplied. Passing path searches exactly that tree instead.

find_files

Find files matching a glob pattern.

Permission: Read

Parameters

NameTypeRequiredDescription
patternstringyesGlob pattern to match files against
pathstringnoDirectory to search in. Omitted, every workspace root is walked
limitintegernoMaximum results to return (defaults to 500 inline)
scratchpadstringnoSave output to the scratchpad under this name

Behavior

  • Results are limited to 500 matches inline; limit raises the cap and scratchpad lifts it.
  • Returns one file path per line.
  • The walk stops after 60 seconds. The result set is still returned, with a note saying it is incomplete, so a search rooted too high in the tree costs a minute rather than hanging the turn.
  • Interrupting the turn (Ctrl+C, or session/cancel from an editor) stops the walk.
  • Paths that cannot be read are skipped and counted; the total is reported once at the end rather than logged per path.

Glob Patterns

PatternMatches
*.rsAll .rs files in the current directory
**/*.rsAll .rs files recursively
src/*.txtAll .txt files in src/
test_*All files starting with test_

search_contents

Search file contents using a regex pattern. Powered by the ripgrep library.

Permission: Read

Parameters

NameTypeRequiredDescription
patternstringyesRegex pattern to search for
pathstringnoFile or directory to search in. Omitted, every workspace root is walked
globstringnoGlob pattern to filter which files are searched (e.g., *.rs)
scratchpadstringnoSave output to the scratchpad under this name

Behavior

  • Searches recursively through directories.
  • Skips hidden files (starting with .) and common non-text directories (target, node_modules).
  • .gitignore is not honoured. Only the matcher comes from ripgrep; the walk is meka’s own, and those three exclusions are all of it. A build directory that is ignored but not named above is searched, so pass glob or path to stay out of one.
  • Results are limited to 100 matches; scratchpad lifts the cap. The search stops once the cap is exceeded instead of reading the rest of the tree to fill a result set it will truncate anyway.
  • The search stops after 60 seconds, returning what it found with a note saying it is incomplete.
  • Interrupting the turn (Ctrl+C, or session/cancel from an editor) stops the search.
  • Each result includes the file path, line number, and matching line.