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 element itself, not to its prototype chain."
},
{
"name": "accessorPropertiesOnly",
"optional": true,
"type": "boolean",
"description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.",
"experimental": true
},
{
"name": "generatePreview",
"type": "boolean",
"optional": true,
"experimental": true,
"description": "Whether preview should be generated for the results."
}
],
"returns": [
{
"name": "result",
"type": "array",
"items": {
"$ref": "PropertyDescriptor"
},
"description": "Object properties."
},
{
"name": "internalProperties",
"optional": true,
"type": "array",
"items": {
"$ref": "InternalPropertyDescriptor"
},
"description": "Internal object properties (only of the element itself)."
},
{
"name": "exceptionDetails",
"$ref": "ExceptionDetails",
"optional": true,
"description": "Exception details."
}
],
"description": "Returns properties of a given object. Object group of the result is inherited from the target object."
}