Skip to content

Commit 3b15ee4

Browse files
docs(files): describe overwrite as an exact-path match
1 parent 037c4f5 commit 3b15ee4

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/docs/content/docs/integrations/file.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Create a new workspace file, either from text content or from an existing file.
127127
| `content` | string | No | The text content to write to the file. Provide exactly one of content or fileInput. |
128128
| `fileInput` | file | No | An existing file to store in the workspace, such as one produced by an earlier tool. Use this for anything that is not text — PDFs, images, audio, archives. Provide exactly one of content or fileInput. |
129129
| `contentType` | string | No | MIME type for new files \(e.g., "text/plain"\). Auto-detected from the file extension, or taken from the stored file, if omitted. |
130-
| `overwrite` | boolean | No | Replace the contents of an existing file with the same name instead of creating a suffixed copy. Creates the file when it does not exist yet. |
130+
| `overwrite` | boolean | No | Replace the contents of an existing file at the exact target path \(folder and name\) instead of creating a suffixed copy. Creates the file when that path does not exist yet. |
131131

132132
#### Output
133133

apps/sim/blocks/blocks/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ export const FileV5Block: BlockConfig<FileParserV3Output> = {
911911
- Search finds literal text across all active workspace files and returns structured results with fileId, lineNumber, and text. Lowercase queries are case-insensitive; adding any uppercase letter makes the search case-sensitive.
912912
- Search is eventually consistent. Check "complete" and "indexStatus" when pending, failed, skipped, or partially indexed files matter to the task.
913913
- Use Fetch for external file URLs. Add headers for authenticated downloads, for example Slack private file URLs require an Authorization Bearer token.
914-
- Use Write to create a new workspace file and Append to add content to an existing one. Write adds a numeric suffix when the name is taken; turn on "Overwrite Existing File" to replace that file's contents instead.
914+
- Use Write to create a new workspace file and Append to add content to an existing one. Write adds a numeric suffix when the name is taken; turn on "Overwrite Existing File" to replace the contents of the file at that exact path (folder and name) instead — a same-named file in another folder is left alone.
915915
- Use Compress to bundle one or more files into a single .zip archive stored in the workspace. The new archive is returned in the "files" output.
916916
- Use Decompress to extract a .zip archive back into the workspace; the extracted files are returned in the "files" output, ready to chain into Get Content or downstream blocks.
917917
`,

apps/sim/tools/file/write.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const fileWriteTool: InternalToolConfig<FileWriteParams, ToolResponse> =
5050
required: false,
5151
visibility: 'user-only',
5252
description:
53-
'Replace the contents of an existing file with the same name instead of creating a suffixed copy. Creates the file when it does not exist yet.',
53+
'Replace the contents of an existing file at the exact target path (folder and name) instead of creating a suffixed copy. Creates the file when that path does not exist yet.',
5454
},
5555
},
5656

apps/sim/tools/generated/tool-metadata.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)