searchconsole.urlTestingTools.mobileFriendlyTest.run
Run a Mobile-Friendly Test for a URL to verify mobile usability and return the JSON response, optionally requesting a screenshot.
Instructions
Runs Mobile-Friendly Test for a given URL [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON RunMobileFriendlyTestRequest object accepting requestScreenshot, url; pass it via params or whole via body_file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON RunMobileFriendlyTestRequest object. | |
| request_body | No | Request body of type RunMobileFriendlyTestRequest: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screenshot | No | ||
| testStatus | No | ||
| resourceIssues | No | ||
| mobileFriendliness | No | ||
| mobileFriendlyIssues | No |