文字数カウント(Xウェイト対応)
count_charsCounts characters in Japanese text, providing grapheme counts, full/half-width breakdown, line count, and Twitter post weight for character-limited form validation.
Instructions
日本語テキストの文字数(書記素単位)・全角/半角内訳・行数と、X(Twitter)の投稿ウェイト(全角=2・半角=1・URL=一律23、上限280)を返す。SNS投稿や文字数制限のあるフォーム入力の検証に使う。
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_chars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | カウント対象のテキスト |