File Access Toolset¶
The File Access toolset provides tools for reading, writing, and editing files on any fsspec-compatible filesystem. This includes local files, S3, GitHub repositories, and more.
Basic Usage¶
Filesystem Options¶
The fs field accepts either a URI string or a full filesystem configuration:
URI String¶
Filesystem Config¶
Composed Filesystems¶
Mount multiple filesystems together using the mounts type:
toolsets:
- type: file_access
fs:
type: mounts
mounts:
docs: "github://sveltejs:svelte@main"
src: "file:///workspace/src"
data:
type: s3
bucket: my-bucket
Available Tools¶
The toolset provides these tools to agents:
| Tool | Description |
|---|---|
list_directory |
List files with glob patterns and filtering |
read_file |
Read file contents (text or binary/images) |
write_file |
Write content to files |
edit_file |
Smart find-and-replace editing |
delete_path |
Delete files or directories |
grep |
Search file contents with regex |
agentic_edit |
AI-powered file editing |
download_file |
Download files from URLs |
Configuration Reference¶
File Access Toolset¶
Configuration for file access toolset (supports local and remote filesystems).