Set how a web page renders
configure_web_linkChange how a web link is rendered for screens: show only one part of the page, auto-scroll a long page, set the refresh cadence, or set the browser size it is rendered at. Only the fields you pass are changed. showOnly takes a CSS selector — everything else on the page is hidden, so a timetable or one dashboard panel fills the screen. Prefer an id (#schedules): class names change whenever the site is republished. Cropping needs a server-rendered snapshot, so setting showOnly switches the link to snapshot rendering (refresh 300 s unless set). Refused for media that is not a web link. Then use render_web_link to see the result now; for name, tags or folder use update_media. Requires media.edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mediaId | Yes | Web link id (med_…), from create_web_link or search_media with kind web. | |
| showOnly | No | CSS selector of the one element to show. Empty string shows the whole page again. | |
| renderWidth | No | Browser width the page is rendered at. Match the screen; 1920 by default. | |
| renderHeight | No | Browser height the page is rendered at. 1080 by default. | |
| refreshSeconds | No | How often the page is re-loaded or re-rendered. 0 means never. | |
| autoScrollPxPerSec | No | Scroll a long page top-to-bottom at this speed. 0 stops auto-scrolling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||