cwv_generate_speculation_rules
Generate W3C Speculation Rules from HTML or URL lists to prerender pages and send 103 Early Hints, cutting navigation latency.
Instructions
Generate W3C Speculation Rules () for instant zero-latency prerendering and 103 Early Hints.
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": {
"html_or_urls": "<html_or_urls>"
},
"name": "cwv_generate_speculation_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_url | No | Base URL for resolving internal links (default: https://example.com). | https://example.com |
| html_or_urls | Yes | HTML content string or comma-separated list of URLs. | |
| aggressiveness | No | Prerender/prefetch eagerness aggressiveness (default: balanced). | balanced |