Serve Preview
serveStart or stop a localhost-only static preview for HTML, CSS, JS, and SVG; hidden files are blocked, and this is not a deployment service.
Instructions
Start or stop a localhost-only static preview for HTML, CSS, JS, and SVG. Hidden files are blocked. Not a deployment service; do not serve files containing secrets.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "serve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Starting port; tries subsequent ports if occupied. | |
| root | No | Folder to serve (default '.'). | |
| action | No | Default: start. |