create_key
Create a map key. Publishable (for a website): give the hostnames it may be used from; the returned publishable value goes in the page. Secret (for a server): the returned secret is shown once and must be stored by the human now. Workspace owner only.
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": {
"kind": "<kind>",
"name": "<name>"
},
"name": "create_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dev | No | Publishable keys only: also allow localhost and 127.0.0.1 on any port, for development. | |
| kind | Yes | "publishable" for a website (works only from the listed origins; the value goes in the page) or "secret" for a server (shown once, never in a browser). | |
| name | Yes | A label, e.g. the site or app it is for. | |
| origins | No | Publishable keys only: hostnames the key may be used from, e.g. "example.com", "*.example.com", "localhost:5173", or a native app as "app:com.example.myapp" (its bundle id or package name). At most 50. |