GetChatMessageFiles
Returns one flattened output row per uploaded file attached to a chat message.
Stored Procedure-Specific Information
Required inputs: ClaudeChatId and ChatMessageId.
To execute this procedure, enter:
EXEC GetChatMessageFiles ClaudeChatId = 'claude_chat_123', ChatMessageId = 'claude_chat_msg_123';
Input
| Name | Type | Required | Description |
| ClaudeChatId | String | True | The tagged chat Id that owns the message. Required: Obtain it from Chats.Id or ChatMessages.ClaudeChatId. |
| ChatMessageId | String | True | The tagged message Id. Required: Obtain it from ChatMessages.Id for the same chat. |
Result Set Columns
| Name | Type | Description |
| ClaudeChatId | String | The chat Id supplied to the procedure. |
| ChatMessageId | String | The message Id supplied to the procedure. |
| Id | String | The uploaded file Id. |
| CreatedAt | Datetime | The file creation timestamp. |
| Filename | String | The display filename. |
| Md5 | String | The lowercase MD5 of the preferred downloadable file variant. |
| MimeType | String | The MIME type of the preferred downloadable file variant. |
| SizeBytes | Long | The size in bytes of the preferred downloadable file variant. |