max_build_message
Build a correct POST /messages request for MAX: JSON body with inline keyboard and images, validation result and a ready curl command. Use it instead of hand-writing keyboard JSON.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "max_build_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG) | |
| text | No | Message text, up to 4000 characters | |
| format | No | Text markup | |
| buttons | No | Rows of buttons. Short form: {text, payload} → callback, {text, url} → link, {text, web_app, payload?} → open_app; or full {type, text, ...} | |
| chat_id | No | For the curl example | |
| user_id | No | For the curl example, private dialog | |
| image_urls | No | External image URLs to attach without uploading | |
| reply_to_mid | No | Reply to this message id | |
| disable_link_preview | No |