PageSpeed Analysis Execute Action
execute_actionExecute PageSpeed Insights actions (Step 3 FINAL).
Prerequisites: Run query_contexts with request='accounts' (includes available_actions) + request='actions_details' to understand the required payload.
IMPORTANT: The 'body' parameter is a dictionary that must contain ALL fields including:
action: Action name (e.g. 'analyze.full', 'core-web-vitals', 'audits.resource-optimizations')
workspace_id: Integer workspace ID
url: The URL to analyze (required)
strategy: 'mobile' or 'desktop' (default: mobile)
categories: Optional list of categories ['performance', 'accessibility', 'best-practices', 'seo']
locale: Optional language code (e.g., 'en-US')
Do NOT pass these as separate parameters - they must ALL be inside the body dictionary.
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": {
"body": "<body>"
},
"name": "execute_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||