Skip to content

Commit d31b813

Browse files
waleedlatif1claude
andcommitted
fix(cursor): restore base64 file data in legacy download_artifact metadata
The legacy CursorBlock exposes only content + metadata (no v2 file output), so metadata.data was the only way legacy-block workflows could access downloaded artifact bytes. Restore the base64 data field and document it in the outputs/type instead of dropping it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0d45fb0 commit d31b813

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

apps/sim/tools/cursor/download_artifact.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const downloadArtifactTool: ToolConfig<DownloadArtifactParams, DownloadAr
6262
metadata: {
6363
name: data.output.file.name,
6464
mimeType: data.output.file.mimeType,
65+
data: data.output.file.data,
6566
size: data.output.file.size,
6667
},
6768
},
@@ -76,6 +77,7 @@ export const downloadArtifactTool: ToolConfig<DownloadArtifactParams, DownloadAr
7677
properties: {
7778
name: { type: 'string', description: 'File name' },
7879
mimeType: { type: 'string', description: 'MIME type' },
80+
data: { type: 'string', description: 'Base64-encoded file contents' },
7981
size: { type: 'number', description: 'File size in bytes' },
8082
},
8183
},

apps/sim/tools/cursor/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export interface DownloadArtifactResponse extends ToolResponse {
210210
metadata: {
211211
name: string
212212
mimeType: string
213+
data: string
213214
size: number
214215
}
215216
}

0 commit comments

Comments
 (0)