transform_message
Preview local Markdown, plain-text, or HTML parsing, UTF-16 entities, and signature layout against Telegram message/caption limits before sending.
Instructions
Preview Markdown/HTML parsing, UTF-16 entities, or signature layout without sending.
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": {
"text": "<text>"
},
"name": "transform_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Raw text to parse and format locally without sending. | |
| target | No | Target length-limit surface (`message` = 4096 chars, `caption` = 1024 chars). | |
| parse_mode | No | Input parse mode (`markdown`, `plain`, or `html`; default `markdown`). |