invoke_raw
Invoke arbitrary Telegram MTProto methods through Telethon when no high-level tool covers your need. Use this low-level fallback to access advanced API capabilities.
Instructions
Вызвать произвольный Telegram MTProto-метод через Telethon.
Args: method_path: полный python-путь, например 'telethon.tl.functions.users.GetFullUserRequest'. kwargs_json: JSON-строка с kwargs для конструктора метода.
⚠️ Опасный tool — может изменить состояние аккаунта или вызвать flood-wait. Используй только когда нужного high-level метода нет.
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": {
"method_path": "<method_path>"
},
"name": "invoke_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kwargs_json | No | {} | |
| method_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||