Skip to content

Commit 338d8af

Browse files
authored
Merge pull request #2602 from sebastien-rosset/read_multiple_files
Improve documentation for the `read_multiple_files` action
2 parents 2a4b7b0 + b647cb3 commit 338d8af

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/filesystem/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ const ReadMediaFileArgsSchema = z.object({
8888
});
8989

9090
const ReadMultipleFilesArgsSchema = z.object({
91-
paths: z.array(z.string()),
91+
paths: z
92+
.array(z.string())
93+
.min(1, "At least one file path must be provided")
94+
.describe("Array of file paths to read. Each path must be a string pointing to a valid file within allowed directories."),
9295
});
9396

9497
const WriteFileArgsSchema = z.object({

0 commit comments

Comments
 (0)