watch_start
Monitors component file changes and automatically renders the component on each save. Retrieve the rendered screenshot via watch_get_latest to see updates instantly.
Instructions
Start watching component files for changes. On every save, the component is automatically rendered and you will receive a notification — call watch_get_latest(id) to retrieve the rendered screenshot. Use this to create a live feedback loop while editing UI — the AI sees each change without you needing to call render_file manually.
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": {
"patterns": "<patterns>"
},
"name": "watch_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patterns | Yes | Glob patterns or absolute file paths to watch (e.g. ['src/components/Button.tsx']) | |
| props | No | Props to pass to the component on each render |