get_performance_metrics
Capture runtime performance metrics (JS heap size, DOM nodes, layout timing) to monitor memory and detect leaks in an active Chrome tab. Returns numeric values.
Instructions
Captures runtime performance metrics including JS heap size, DOM node count, and layout timing. Side effects: none (read-only snapshot). Prerequisites: requires an active Chrome tab. Returns: JSON object mapping metric names to numeric values (e.g., JSHeapUsedSize, LayoutCount). Use this to monitor memory usage, detect memory leaks, or profile performance. Alternatives: 'profile_page_performance' for detailed tracing, browser DevTools Performance tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | The Tab ID of the target tab. Omit to use the active tab. | |
| instance_id | No | Chrome instance id from open_instance/list_instances. Omit for the default instance. |