Memory Metrics
memory_metricsProfiles page memory by returning JS heap size, DOM node count, and layout metrics so you can diagnose leaks, slow pages, or decide whether to reuse a tab.
Instructions
Performance counters: JS heap size, DOM nodes, layout count, etc.
When: profiling a slow page, hunting a memory leak across a long
automation run, or deciding whether to close a tab vs reuse it.
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": {
"tab_id": "<tab_id>"
},
"name": "memory_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||