GetChatFile
Returns metadata for one user-uploaded chat file.
Stored Procedure-Specific Information
Required input: ClaudeFileId, available from GetChatMessageFiles. Id or the Files JSON column in ChatMessages. Use DownloadFile to retrieve its binary content.
To execute this procedure, enter:
EXEC GetChatFile ClaudeFileId = 'claude_file_123';
Input
| Name | Type | Required | Description |
| ClaudeFileId | String | True | The chat file id. Obtain it from GetChatMessageFiles.Id or from the Files JSON column in ChatMessages. |
Result Set Columns
| Name | Type | Description |
| Id | String | The unique chat file id. |
| Filename | String | The display name of the file, when set. |
| MimeType | String | The MIME type of the preferred downloadable variant, when available. |
| SizeBytes | Long | The size of the preferred downloadable file variant in bytes, when known. |
| Md5 | String | The lowercase MD5 of the preferred downloadable file variant, when available. |
| CreatedAt | Datetime | The creation timestamp of the file. |
| MessageIds | String | The ids of the messages that reference the file, as a JSON array string. |
| ClaudeChatIds | String | The ids of the chats that reference the file, as a JSON array string. |