Runtime.getDisplayableProperties

Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend).

{
  "name": "getDisplayableProperties",
  "parameters": [
    {
      "name": "objectId",
      "$ref": "RemoteObjectId",
      "description": "Identifier of the object to return properties for."
    },
    {
      "name": "generatePreview",
      "type": "boolean",
      "optional": true,
      "description": "Whether preview should be generated for property values."
    }
  ],
  "returns": [
    {
      "name": "properties",
      "type": "array",
      "items": {
        "$ref": "PropertyDescriptor"
      },
      "description": "Object properties."
    },
    {
      "name": "internalProperties",
      "optional": true,
      "type": "array",
      "items": {
        "$ref": "InternalPropertyDescriptor"
      },
      "description": "Internal object properties."
    }
  ],
  "description": "Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend)."
}