info_peers
Get a list of peers this node is connected to. Optionally filter by specific NodeIDs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "info_peers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | The Avalanche network to query (default: mainnet) | |
| nodeIDs | No | Optional list of NodeIDs to filter peers by (e.g., ["NodeID-AbC..."]). If omitted, all peers are returned. |