switch-chain
Switch the blockchain network in MetaMask by specifying chain ID and parameters like chain name, RPC URLs, and native currency details, enabling seamless AI-powered interactions with MCPilot.
Instructions
Switch the target chain
Input Schema
Name | Required | Description | Default |
---|---|---|---|
addEthereumChainParameter | No | ||
chainId | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"addEthereumChainParameter": {
"additionalProperties": false,
"properties": {
"blockExplorerUrls": {
"items": {
"type": "string"
},
"type": "array"
},
"chainName": {
"type": "string"
},
"iconUrls": {
"items": {
"type": "string"
},
"type": "array"
},
"nativeCurrency": {
"additionalProperties": false,
"properties": {
"decimals": {
"type": "number"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
}
},
"required": [
"name",
"symbol",
"decimals"
],
"type": "object"
},
"rpcUrls": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"chainName",
"rpcUrls"
],
"type": "object"
},
"chainId": {
"type": "number"
}
},
"required": [
"chainId"
],
"type": "object"
}