Skip to content

Commit cdf521b

Browse files
committed
docs(file): correct compress description and stale file-output references
- Drop the misleading 'under provider upload limits' claim from the compress tool description (models cannot read zip archives) - Fix bestPractices to reference the 'files' output, not a non-existent 'file' - Remove the stale 'file' property from the compress test fixture so it matches the real API response (greptile)
1 parent 128a80a commit cdf521b

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

apps/sim/blocks/blocks/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ export const FileV5Block: BlockConfig<FileParserV3Output> = {
833833
- Get Content's "contents" can be large; it is persisted through the execution large-value system automatically, so prefer it over inlining file text any other way.
834834
- Use Fetch for external file URLs. Add headers for authenticated downloads, for example Slack private file URLs require an Authorization Bearer token.
835835
- Use Write to create a new workspace file and Append to add content to an existing one.
836-
- Use Compress to bundle one or more files into a single .zip archive stored in the workspace. The new archive is returned in the "file"/"files" outputs.
836+
- 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.
837837
- 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.
838838
`,
839839
subBlocks: [

apps/sim/tools/file/compress.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ describe('fileCompressTool', () => {
5252
name: archive.name,
5353
size: archive.size,
5454
url: archive.url,
55-
file: archive,
5655
files: [archive],
5756
},
5857
})

apps/sim/tools/file/compress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const fileCompressTool: ToolConfig<FileCompressParams, ToolResponse> = {
1212
id: 'file_compress',
1313
name: 'File Compress',
1414
description:
15-
'Compress one or more workspace files into a single .zip archive stored in the workspace. Useful for getting large attachments under provider upload limits.',
15+
'Compress one or more workspace files into a single .zip archive stored in the workspace, for bundling files to download, transfer, or store.',
1616
version: '1.0.0',
1717

1818
params: {

0 commit comments

Comments
 (0)