datafile scan
File Scan
file_scanInventories files in a local directory with paths, extensions, and sizes. Use when an agent needs to understand a workspace before reading or searching it. Scope: local filesystem only and read-only; skips common dependency/build directories and returns at most 5,000 files. Not for secret scanning (use repo_scanner).
How to use file_scan
Provide only the required inputs below. Start with the smallest scope that answers the task, then review the risk properties before an agent executes the call.
Risk and execution properties
Read only: yes
Destructive: no
Idempotent: yes
Open world: no — operates locally or through configured services
Inputs
pathstringrequiredDirectory to inventory.
file_extensionsarrayOptional extension filter such as ['.py', '.md'].
Example input
{
"path": "<string>",
"file_extensions": "<array>"
}Browse or search the full 74-tool reference to choose the smallest suitable capability.
Browse all tools →