compare_env
Collect browser environment data from the isolated world to compare against Node.js/jsdom, returning a summary or writing a full JSON bundle for debugging anti-detection mismatches.
Instructions
Collect the browser environment for comparison with Node.js/jsdom.
Values are read in the isolated world, i.e. what the browser provides without page-script patches.
Without output_path it returns a summary: navigator and screen basics,
canvas (toDataURL hash, measureText), WebGL (vendor/renderer, extension
count), audio (OfflineAudioContext fingerprint, sample rate), timing and
misc, plus properties evaluated as expressions.
With output_path it writes an environment bundle (JSON) and returns its path, size and a short summary: every Navigator/Screen getter with plugins and mimeTypes, window metrics and global names, getComputedStyle names and values, CSS declaration prototype names with enumerable flags and the for-in count, the full canvas toDataURL, WebGL parameters/extensions/ shader precisions, audio, storage keys with value lengths (never values, never cookie values), a hidden about:blank iframe compared with the top window (added and removed again; a MutationObserver sees it), timing and Intl. Apply it in Node/jsdom with the skill's env-bundle template.
Args: properties: Extra expressions to evaluate, e.g. ["navigator.oscpu"]. output_path: File for the full bundle; omit for the summary. sections: Limit the bundle to these sections (default all): navigator, screen, window, css, canvas, webgl, audio, storage, iframe, timing.
Returns: dict with categorized environment data, or the bundle's path/summary.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compare_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sections | No | ||
| properties | No | ||
| output_path | No |