GetGeneratedFile
Returns metadata for one file generated by Claude through tool use.
Stored Procedure-Specific Information
Required input: ClaudeGenFileId, available from GetChatMessageGeneratedFiles. Id or the GeneratedFiles JSON column in ChatMessages. Use DownloadGeneratedFile to retrieve its binary content.
To execute this procedure, enter:
EXEC GetGeneratedFile ClaudeGenFileId = 'claude_gen_file_123';
Input
| Name | Type | Required | Description |
| ClaudeGenFileId | String | True | The generated file id. Obtain it from GetChatMessageGeneratedFiles.Id or from the GeneratedFiles JSON column in ChatMessages. |
Result Set Columns
| Name | Type | Description |
| Id | String | The unique generated file id. |
| ClaudeChatId | String | The id of the chat the file belongs to. |
| CreatedAt | Datetime | The creation timestamp of the generated file, when available. |
| Filename | String | The display name of the generated file. |
| Md5 | String | The lowercase MD5 of the stored file, when available. |
| MimeType | String | The MIME type of the stored file, when available. |
| SizeBytes | Long | The size of the stored file in bytes, when available. |