Import a file from a URL
fetch_assetPull an image, video, audio, or PDF from a public URL into the media library as a media key. Use it to bring reference or publish-candidate files into your library for later use.
Instructions
Pull an image, video, audio file or PDF at a public URL into the media library as a media key. A fetched file is reference material until you know you may republish it. Free: budgetUsd (default 2, max 10) is held while it runs and released. Needs the write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute URL of the file itself, not the page around it. | |
| purpose | No | Why you want it. 'publish-candidate' commits you to stating the rights argument in the plan. | |
| budgetUsd | No | Optional: the most this call may spend, in dollars, default 2, max 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| media | Yes | ||
| output | No | The tool's own result, shaped by the tool. | |
| chargedUsd | Yes |