Switch a code off or on
switch_codeWith the key: a switched-off code shows a notice and nothing else until it is switched back on. A blank code can be switched off too: a scan then cannot set it up.
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": {
"code": "<code>",
"token": "<token>",
"on": "<on>"
},
"name": "switch_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | true: on. false: off. | |
| code | Yes | The 7 characters at the end of the short address. | |
| token | Yes | The key of the code, from the answer that made it. With an account key, "" for a code of that account. |