Skip to content

Tool: find_files

Description: Find files in one or more directories matching a pattern. Respects .gitignore.

Argument Type Description
directories list[str] List of directories to search in.
pattern str File pattern to match. Uses Unix shell-style wildcards.
recursive bool, optional Whether to search recursively in subdirectories. Defaults to True.
Returns str Newline-separated list of matching file paths, or warning if pattern is empty.

Example usage: find_files(directories=["src", "tests"], pattern="*.py", recursive=True)


generated by janito.dev