target
List all open pages and workers, or switch to a specific one using URL, title, or index.
Instructions
List or switch browser targets (pages, workers).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL pattern with * wildcards (for switch) | |
| index | No | Target index (for switch) | |
| title | No | Partial title match (for switch) | |
| action | Yes | "list" to show all targets or "switch" to change target | |
| connection_id | No | Chrome connection to use |