firefox-devtools-mcpTools Reference
take_snapshot
Get HTML content with element UIDs
take_snapshot
Take a snapshot of the current page, generating unique IDs (UIDs) for each element. These UIDs can be used with other tools like click_by_uid and fill_by_uid.
Parameters
None required.
Example
{
"tool": "take_snapshot",
"arguments": {}
}Response
Returns the page HTML with elements tagged with UIDs.
Notes
- Take a fresh snapshot after page navigation
- UIDs are only valid until the page changes
- Use
resolve_uid_to_selectorto get CSS selectors from UIDs