import_images
Import images from links
Add images to the workspace's creatives from https links: a picture you generated for the person, or one from their own website.
Up to 8 links per call. Each is fetched by the server, must really be a PNG, JPEG, WebP or GIF (judged from the file, not its name), and must be within the upload size limit; anything else is refused and reported per link. Returns the creative ids (attach with save_content_draft asset_ids, or use one as the photo in create_creative photo_caption) and the first imported picture to look at. Import only images the person has the right to use: never someone else's photos, logos or a competitor's creative. For files on the person's own computer use request_upload instead. Nothing is published.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
urls |
array of string | yes | 1 to 8 https links, each straight to an image file. |
content_id |
string | no | The content item these images are for, if any. |
request_key |
string | no | Any unique string for this request. The same key returns the first result instead of importing again. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It reaches outside the workspace: it fetches an address, makes a public link or puts something on a channel's schedule.
- It is in the list every assistant sees when it connects.
- It is always called by its own name, never through execute_tools, so the assistant's own safety prompts apply.
How tools behave: confirmation, review links, errors and limits
In the same group
create_creative · get_approval · get_content · list_approvals · list_content · list_creative_templates · list_creatives · list_uploads · manage_content · preview_creative · preview_post · request_approval · request_upload · save_content_draft · update_creative