Publish a media asset to the site
publish_media_to_siteTurn gallery assets into site pages: publish reports, HTML, or text as page content, or copy images to site assets for display. Returns the new page, linking media to your website.
Instructions
Publish a gallery asset as a page on the project site (media/push-to-blog). A report/HTML/text asset becomes the page's content; an image is copied to site/assets and shown on the page. Returns the new page. Links media → website.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"name": "<name>"
},
"name": "publish_media_to_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Gallery asset filename (from list_media). | |
| slug | No | Page slug; defaults to the asset name. | |
| title | No | ||
| project | Yes |