fileforge_perf_action
Run a Core Web Vitals performance audit on a single page URL across desktop and mobile viewports. Use it to check page speed, store the result, and avoid changing the site.
Instructions
Run a performance audit on a URL across viewports and return Core Web Vitals. Use this for a performance check of one page. Use fileforge_devtools_action for raw session data and fileforge_audit_action for SEO, content and security. Loads the URL in its own tab, closes it afterward, and stores the result by default. It doesn't change the site. Needs the extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page URL to audit. | |
| store | No | Save the result in ~/.fileforge and return a ref. | |
| action | Yes | What to do. Required parameters are in brackets. audit (url): Run a performance audit (Core Web Vitals) across viewports. | |
| project | No | Project name that groups stored results. | default |
| settleMs | No | Milliseconds to wait after load before capturing. | |
| timeoutMs | No | Time limit in milliseconds. | |
| viewports | No | Viewport presets to use, such as "desktop" or "mobile". | |
| networkIdleMs | No | Quiet network period that counts as idle, in milliseconds. | |
| includeScreenshot | No | Include a screenshot. | |
| networkIdleTimeoutMs | No | Longest wait for network idle, in milliseconds. |
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. |