Set or change what a code does
set_codeWith the key: sets what a scan of an existing code does, or changes it. The printed picture stays the same.
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>",
"action": "<action>"
},
"name": "set_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| action | Yes | What a scan of the code does. A code can open a link, start an email, a call or a text message, or show Wi-Fi details, a contact card, a note, a place on a map or an event. Wi-Fi details, contact cards, notes, places and events are short text kept with the code (at most 2000 bytes) and shown by the page a scan opens; a link is only stored, the page it leads to is not. |