Skip to contents

Search for files under a directory using shell-style glob matching.

Usage

tool_glob_files(pattern = "*", path = ".", recursive = TRUE)

Format

A tool definition created with ellmer::tool().

Arguments

pattern

Glob pattern to match (tool argument)

path

Base directory to search (tool argument)

recursive

If TRUE, search subdirectories recursively (tool argument)