Diagnose a Page Performance Problem
pagespeed_diagnose_pageDiagnose one page through a single focus—visual, elements, network, JavaScript, images, render-blocking, or third parties—to gather targeted evidence after analysis flags a performance issue.
Instructions
Inspect one page through exactly one diagnostic lens: visual, elements, network, javascript, images, render-blocking, or third-parties. Use after pagespeed_analyze_page identifies a problem; do not use it for a general score. Example: focus=render-blocking to identify CSS/JS delaying first render. Returns focused evidence (including native image screenshots when focus=visual).
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": {
"url": "<url>",
"focus": "<focus>"
},
"name": "pagespeed_diagnose_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public or local http(s) URL, for example https://example.com/products or http://localhost:3000. | |
| focus | Yes | The single diagnostic lens to return. | |
| engine | No | Analysis engine: auto (default, uses local Lighthouse for localhost/private URLs and Google PSI for public URLs), psi, or local. | |
| strategy | No | Lighthouse device profile. mobile is the default. | mobile |
| extraHeaders | No | Optional HTTP headers (for example Authorization or Cookie) passed when running local Lighthouse against protected staging sites. | |
| responseFormat | No | markdown is concise and readable; json is machine-readable and is also available as structuredContent. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| result | Yes | ||
| truncated | No | ||
| truncationMessage | No |