list_instances
Lists Compute Engine virtual machine (VM) instances. Details for each instance include name, ID, status, machine type, creation timestamp, and attached guest accelerators. Use other tools to get more details about each instance. Requires project and zone as input.
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": {
"project": "<project>",
"zone": "<zone>"
},
"name": "list_instances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | Required. The zone of the instances. | |
| project | Yes | Required. Project ID for this request. | |
| pageSize | No | Optional. The maximum number of instances to return. | |
| pageToken | No | Optional. A page token received from a previous call to list instances. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instances | No | The list of instances. | |
| nextPageToken | No | A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |