Runtime.getProperties

Returns properties of a given object. Object group of the result is inherited from the target object.

{
  "name": "getProperties",
  "parameters": [
    {
      "name": "objectId",
      "$ref": "RemoteObjectId",
      "description": "Identifier of the object to return properties for."
    },
    {
      "name": "ownProperties",
      "optional": true,
      "type": "boolean",
      "description": "If true, returns properties belonging only to the object itself, not to its prototype chain."
    },
    {
      "name": "generatePreview",
      "type": "boolean",
      "optional": true,
      "description": "Whether preview should be generated for property values."
    }
  ],
  "returns": [
    {
      "name": "result",
      "type": "array",
      "items": {
        "$ref": "PropertyDescriptor"
      },
      "description": "Object properties."
    },
    {
      "name": "internalProperties",
      "optional": true,
      "type": "array",
      "items": {
        "$ref": "InternalPropertyDescriptor"
      },
      "description": "Internal object properties."
    }
  ],
  "description": "Returns properties of a given object. Object group of the result is inherited from the target object."
}