blob: 394feddc2f05ccfae1d444b5abce67e982eaf085 [file] [log] [blame]
{
"domain": "Target",
"debuggableTypes": ["web-page"],
"targetTypes": ["web-page"],
"types": [
{
"id": "TargetInfo",
"type": "object",
"description": "Description of a target.",
"properties": [
{ "name": "targetId", "type": "string", "description": "Unique identifier for the target." },
{ "name": "type", "type": "string", "enum": ["page", "service-worker", "worker"] }
]
}
],
"commands": [
{
"name": "sendMessageToTarget",
"description": "Send an Inspector Protocol message to be dispatched to a Target's agents.",
"parameters": [
{ "name": "targetId", "type": "string" },
{ "name": "message", "type": "string", "description": "JSON Inspector Protocol message (command) to be dispatched on the backend." }
]
}
],
"events": [
{
"name": "targetCreated",
"parameters": [
{ "name": "targetInfo", "$ref": "TargetInfo" }
]
},
{
"name": "targetDestroyed",
"parameters": [
{ "name": "targetId", "type": "string" }
]
},
{
"name": "dispatchMessageFromTarget",
"parameters": [
{ "name": "targetId", "type": "string" },
{ "name": "message", "type": "string", "description": "JSON Inspector Protocol message (response or event) to be dispatched on the frontend." }
]
}
]
}