Build the chat_prompt attachments array in draft order with the web's {name, mime, data} shape, trimming and 8-file/1 MiB bounds, and read a recorded history file part back to an attachment.
Record picked attachment metadata and keep the web composer's 1 MiB total budget with a refusal that leaves the draft unchanged.