prepare_file
Reserve a file slot (PDF, Excel, or image, max 10MB), then PUT the bytes to upload_url with Bearer. Needs a terminal or HTTP client. No terminal? Use send_file or upload_file with a url, or content_base64 for files up to 2 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Agent token, if not sent as the Authorization: Bearer header. | |
| filename | Yes | Name with extension, for example report.pdf. | |
| media_type | No | For example application/pdf. Guessed from the name if missing. |