DOM.getDocument

Returns the root DOM node (and optionally the subtree) to the caller. Calling `getDocument` will invalidate any previously valid nodeIds

{
  "name": "getDocument",
  "parameters": [
    {
      "name": "depth",
      "type": "integer",
      "description": "The maximum depth at which children should be retrieved, defaults to 2. Use -1 for entire subtree."
    },
    {
      "name": "pierce",
      "type": "boolean",
      "description": "Whether or not iframes should be traversed when returning the subtree (default is false)."
    }
  ],
  "returns": [
    {
      "name": "root",
      "$ref": "Node",
      "description": "Resulting Node."
    }
  ],
  "description": "Returns the root DOM node (and optionally the subtree) to the caller. Calling `getDocument` will invalidate any previously valid nodeIds"
}