Put the owner's photo or logo online
attach_imageUse for the owner's own photos and logo (pages, menu, shop, gallery, blog). action "drop_link" (with site_id) makes a link where the owner drops many photos from a phone or computer (one website, one hour, no sign-in); action "dropped" then lists each photo's name and /_g/u/… path. Default: copies one image from a public link (url), or one small image as data_base64.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "attach_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) link to the image file. | |
| action | No | save (default): one image from url or data_base64. drop_link: a link where the owner drops many photos from a phone or computer (one website, 1 hour). dropped: the photos dropped for the website, with paths. | |
| site_id | No | drop_link and dropped: the website (see list_sites). | |
| filename | No | Original file name, e.g. "logo.png". | |
| data_base64 | No | The image file itself, base64-encoded (instead of url). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Saving one image: its full address. | |
| path | No | Saving one image: the path to use in HTML or module data, e.g. /_g/u/abc.webp. | |
| text | Yes | The answer in words, the same as the text content: read it (for get_guide the whole guide, for get_site the files' contents). | |
| type | No | Image type. | |
| bytes | No | ||
| width | No | ||
| height | No | ||
| photos | No | dropped: every photo dropped for the website, oldest first. | |
| site_id | No | drop_link / dropped: the website. | |
| drop_url | No | drop_link: the link to give the owner (works once, for this website, until expires_at). | |
| expires_at | No | drop_link: when the link stops working (ISO time). | |
| max_photos | No | drop_link: photos one link takes. |