fileforge_responsive_action
Scan a URL across viewport widths to detect layout bugs such as horizontal overflow and overlapping elements, and capture screenshots at a width matrix for comparison.
Instructions
Find layout bugs across screen widths: scan a URL, and locate overflow and overlapping elements. capture_matrix takes a screenshot at each viewport. Use fileforge_visual_action to compare screenshots against baselines. Loads the page in your session and can store results; it doesn't change the site. Needs the extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL to scan. Required for scan_layout and capture_matrix. | |
| store | No | Save the result in ~/.fileforge and return a ref. | |
| tabId | No | Tab ID, or "active" for the active tab. | active |
| action | Yes | What to do. Required parameters are in brackets. scan_layout (url): Scan layout for responsive issues across widths. find_overflow: Find horizontal overflow at responsive widths. find_overlaps: Find overlapping element boxes. capture_matrix (url): Capture screenshots at a width matrix. | |
| checks | No | Checks to run. Defaults apply if omitted. | |
| widths | No | Viewport widths to test |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | False if the action failed or a check did not pass. | |
| ref | No | Stored result ID, for fileforge_result_action. | |
| data | No | The result. Its shape depends on the action. | |
| meta | No | Tool, action and context. | |
| error | No | Failure code and message. | |
| warnings | No | Notes about a call that still ran. |