Encode Mermaid share state
encode_mermaid_shareEncodes Mermaid source and optional config into a reversible pako token for sharing, with an option to build a share URL from a supplied HTTP(S) base URL.
Instructions
Encode source and optional config into a bounded pako: token. Optionally create a share URL for an explicitly supplied HTTP(S) baseUrl, without credentials or an existing fragment. Does not validate syntax or open the destination. The token is reversible and contains the source.
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>"
},
"name": "encode_mermaid_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Mermaid source text. Syntax is not validated and nothing is rendered. | |
| baseUrl | No | ||
| mermaidConfig | No | Optional Mermaid config as a JSON object string; stored as untrusted data, never applied here. |