SystemInfo.getInfoReturns information about the system.
| Name | Type | Description |
|---|---|---|
gpu | GPUInfo | Information about the GPUs on the system. |
modelName | string | A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported. |
modelVersion | string | A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported. |
commandLine | string | The command line string used to launch the browser. Will be the empty string if not supported. |
{
"id": 1,
"method": "SystemInfo.getInfo"
}
{
"id": 1,
"result": {
"gpu": "gpu-value",
"modelName": "modelName-value",
"modelVersion": "modelVersion-value",
"commandLine": "commandLine-value"
}
}
const result = await send('SystemInfo.getInfo');
console.log(result);
// {"gpu": "gpu-value", "modelName": "modelName-value", "modelVersion": "modelVersion-value", "commandLine": "commandLine-value"}