← Back to Target domain

Target.getTargetInfo

Returns information about a target.

Domain: Target experimental

Parameters

NameTypeDescription
targetId (optional)TargetID

Returns

NameTypeDescription
targetInfoTargetInfo

Example Request

{
  "id": 1,
  "method": "Target.getTargetInfo"
}

Example Response

{
  "id": 1,
  "result": {
    "targetInfo": "targetInfo-value"
  }
}

Usage in Node.js

const result = await send('Target.getTargetInfo');
console.log(result);
// {"targetInfo": "targetInfo-value"}