Tools: references
The reference_analyze tool lets the assistant look at a site you like and build yours in a similar spirit.
reference_analyze
Shows the assistant an existing site you want inspiration from. It returns a compact analysis of its structure and style (title, headings, navigation, page sections in order, colour palette, fonts, layout techniques) and, unless you turn them off, two screenshots: the desktop view (1280 px wide) and the phone view (390 px). It is inspiration only: the text and images of the reference are not copied.
Parameters
urltextrequiredThe full http(s) address of the site to analyse, for example https://example.com/. Up to 2000 characters.
slugtextoptionalThe slug of one of your sites. When given, the analysis is stored as one of that site’s references (calling again refreshes it). Leave out for a one-off look.
withScreenshotsyes/nooptionaltrue (default): includes desktop and phone screenshots. false: text analysis only, faster and much smaller; enough when you need the palette and structure.
- Only public sites can be fetched; private and internal addresses are refused (SSRF protection).
- Sites drawn entirely by JavaScript give a thin text analysis, but the screenshots still show them.
- Tall pages are cut at about 1800 px. The operation takes up to about half a minute.
Example request to the assistant
Analyse https://example.com and build a similar site for my bakery, in warmer colours.
Inspiration, not copying
The analysis concerns structure and style. The assistant should not copy the texts, images or code of the reference site, but write its own content and build the layout itself. If you want to use your own logo from a site you analysed, give it explicitly (see Images).
Why some addresses are refused
The server fetches sites from the internet on your behalf, so it must make sure it cannot be used to look into internal networks. That is why it refuses private, local and internal addresses (for example localhost, home and company network addresses, or the addresses of cloud services). The real IP address is checked after the name is resolved and after every redirect, and fetching has a size and time limit. The same applies to the asset_fetch tool.
When the assistant reports that it cannot fetch a site, check that the address is public and starts with http:// or https://.

