count_tweet_characters
Measure tweet character count using X's weighted-length formula. Returns character count, remaining budget for free and Premium limits, and warns if a thread split is needed.
Instructions
Count tweet characters using X's official weighted-length formula. CJK ideographs, fullwidth chars, and most emoji count as 2; URLs always count as 23 (t.co shortening). Returns char count, remaining budget for free + Premium limits, and a warning if a thread split is needed.
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": "count_tweet_characters"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Tweet text to measure |