site-prompt
v0.2.1Point at any part of a website and get a prompt that rebuilds it 1:1, or see how it is made.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
site_read
Read a website so it can be rebuilt 1:1. Opens it in Chrome like a person (scrolls it, waits for it to settle, clicks away a cookie banner) and measures everything: the stack it was built with (framework, styling, motion libraries, host), every colour, type style, radius, shadow, blur and spacing value, each section top to bottom with its exact copy and structure, hover states, the header on scroll, scroll reveals, keyframes, fonts, breakpoints, and how it changes at tablet and phone width. Writes ~/Documents/Site Prompts/<site>/ (PROMPT.md, exact.html, spec.json, css/, shots/), copies the pro…
| Parameter | Type | Description |
|---|---|---|
url * | string | the page, e.g. https://linear.app or stripe.com/payments |
site_prompt
Finish the build prompt for a site already read with site_read: adds your visual notes per section and an overall paragraph, and rewrites ~/Documents/Site Prompts/<site>/PROMPT.md. Copies it to the clipboard and returns it in full, with a link to the file: show both to the person.
| Parameter | Type | Description |
|---|---|---|
url * | string | the same url given to site_read |
notes | object | section number → what the eye sees in it |
overall | string | one paragraph: the look and feel of the whole page |
site_pick
Let the person point at what they like on a website (a button, a line of type, an illustration, a section, any component) and get a prompt that builds exactly that. With url: opens the site with a picker toolbar (in the person's own Chrome if remote debugging is on at chrome://inspect/#remote-debugging, else a Chrome window site-prompt opens) AND waits in the same call until they press Get prompts. Before calling, tell them in one or two lines: hover, click what you like, then Get prompts in the toolbar (bottom right). Each pick comes back as a prompt with its exact code, states, type or artwo…
| Parameter | Type | Description |
|---|---|---|
dev_url | string | where the person's own site runs in dev (e.g. http://localhost:3000/pricing); found by itself when omitted |
mode | string | auto (default): their own Chrome when reachable, else a window |
say | string | a short line to show in the picker toolbar, e.g. "✓ Added to Hero.tsx, 99% match" (then it keeps waiting for picks unless wait is 0) |
stop | boolean | close the picking session |
url | string | the site to open (first call); omit to wait for picks in the open session |
wait | number | seconds to wait for picks (default 240, at most 600) |
site_match
Check a component you built against the one the person picked: screenshots it in their running app (the local url and a CSS selector for it) and compares it with the original, aligned to the pixel. Returns the difference and, when it is off, a sheet of original | yours | difference (bright = different). Use after adding a pick to the project.
| Parameter | Type | Description |
|---|---|---|
pick * | string | the pick folder (from site_pick) |
selector * | string | a CSS selector for your component on that page |
url * | string | where the component renders, e.g. http://localhost:3000/pricing |
hover | boolean | compare the hover state instead (needs original-hover.png) |
site_component
Clone one part of a website exactly: a button, a card, a nav bar, a hero, a pricing table. Without a selector, a Chrome window opens on the page and the person hovers and clicks the part they want (↑ picks its parent); tell them that first. With a selector, it is taken directly. Snapshots its whole subtree with every computed style, its :hover, :focus-visible and :active states, keyframes and fonts into a standalone component.html that renders like the original, checks the clone against the original pixel by pixel, and writes COMPONENT.md, a prompt to rebuild it in any stack.
| Parameter | Type | Description |
|---|---|---|
url * | string | the page the component is on |
name | string | a short name for it, e.g. "hero button" |
selector | string | a CSS selector for it (skips the picker) |
wait | number | seconds to wait for the click (default 180) |
site_compare
Score a rebuild against the original site: both pages loaded and scrolled at each width, compared band by band (SSIM, 1 = identical). Returns the scores, the page heights, and for each band under 0.95 a sheet of original | clone | difference (bright = different) with its y position. Fix the worst first and compare again.
| Parameter | Type | Description |
|---|---|---|
clone * | string | the rebuild, e.g. http://localhost:3000 |
original * | string | the original site |
widths | array | default [1440, 390] |