Upload session file
upload_session_fileUpload a file into a session's input namespace; the response returns the stored path to pass as file_name in that session's attachments when sending a message.
Instructions
Upload a file into a session's input namespace so it can be attached to a message. The response returns the stored path — pass it as file_name in the attachments array when sending a message on the same session.
Files are base64 encoded in the request body and limited to 200MB (decoded). Uploaded files are scoped to the session they were uploaded to and cannot be attached to messages on other sessions. Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete JSON request body instead of body flags. Preserves current endpoint fields and values. | |
| file_name | No | Name of the file. Directory components are stripped; the base name is sanitized before storage. | |
| media_type | No | MIME type of the file. Echoed back in the response. | |
| session_id | Yes | ID of the session to upload the file to. | |
| file_content | No | Base64-encoded file contents. Maximum decoded size is 200MB. | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. |