x_count
Count a draft's X-weighted length (URLs=23, emoji=2) and check it against the account tier limit of 280 or 25,000 before posting.
Instructions
Count a draft's weighted length the way X does (URLs=23, emoji=2) against the account tier's limit (basic 280, premium 25,000).
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": "x_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |