Runtime.callFunctionOn

Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

{
  "name": "callFunctionOn",
  "parameters": [
    {
      "name": "objectId",
      "$ref": "RemoteObjectId",
      "description": "Identifier of the object to call function on."
    },
    {
      "name": "functionDeclaration",
      "type": "string",
      "description": "Declaration of the function to call."
    },
    {
      "name": "arguments",
      "type": "array",
      "items": {
        "$ref": "CallArgument",
        "description": "Call argument."
      },
      "optional": true,
      "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target object."
    },
    {
      "name": "doNotPauseOnExceptionsAndMuteConsole",
      "type": "boolean",
      "optional": true,
      "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.",
      "hidden": true
    },
    {
      "name": "returnByValue",
      "type": "boolean",
      "optional": true,
      "description": "Whether the result is expected to be a JSON object which should be sent by value."
    },
    {
      "name": "generatePreview",
      "type": "boolean",
      "optional": true,
      "hidden": true,
      "description": "Whether preview should be generated for the result."
    }
  ],
  "returns": [
    {
      "name": "result",
      "$ref": "RemoteObject",
      "description": "Call result."
    },
    {
      "name": "wasThrown",
      "type": "boolean",
      "optional": true,
      "description": "True if the result was thrown during the evaluation."
    }
  ],
  "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
}