LayerTree.layersForNode

Returns the layer tree structure of the current page.

{
  "name": "layersForNode",
  "parameters": [
    {
      "name": "nodeId",
      "$ref": "DOM.NodeId",
      "description": "Root of the subtree for which we want to gather layers."
    }
  ],
  "description": "Returns the layer tree structure of the current page.",
  "returns": [
    {
      "name": "layers",
      "type": "array",
      "items": {
        "$ref": "Layer"
      },
      "description": "Child layers."
    }
  ]
}