Skip to content

Commit b5c4570

Browse files
Maimikurueucyt
andauthored
feat: clarifying the descriptions of user_id and DESTINATION_USER_ID … (#47)
* feat: clarifying the descriptions of user_id and DESTINATION_USER_ID in the README files. * fix: update * Update README.ja.md Co-authored-by: Yuta Euchi <[email protected]> * Update README.md Co-authored-by: Yuta Euchi <[email protected]> * feat: update --------- Co-authored-by: Yuta Euchi <[email protected]>
1 parent 11aaa81 commit b5c4570

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.ja.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ LINE公式アカウントとAI Agentを接続するために、LINE Messaging AP
1414
1. **push_text_message**
1515
- LINEでユーザーにシンプルなテキストメッセージを送信する。
1616
- **入力:**
17-
- `user_id` (string?): メッセージ受信者のユーザーID。デフォルトはDESTINATION_USER_ID。
17+
- `user_id` (string?): メッセージ受信者のユーザーID。デフォルトはDESTINATION_USER_ID。`user_id`または`DESTINATION_USER_ID`のどちらか一方は必ず設定する必要があります。
1818
- `message.text` (string): ユーザーに送信するテキスト。
1919
2. **push_flex_message**
2020
- LINEでユーザーに高度にカスタマイズ可能なフレックスメッセージを送信する。
2121
- **入力:**
22-
- `user_id` (string?): メッセージ受信者のユーザーID。デフォルトはDESTINATION_USER_ID。
22+
- `user_id` (string?): メッセージ受信者のユーザーID。デフォルトはDESTINATION_USER_ID。`user_id`または`DESTINATION_USER_ID`のどちらか一方は必ず設定する必要があります。
2323
- `message.altText` (string): フレックスメッセージが表示できない場合に表示される代替テキスト。
2424
- `message.content` (any): フレックスメッセージの内容。メッセージのレイアウトとコンポーネントを定義するJSONオブジェクト。
2525
- `message.contents.type` (enum): コンテナのタイプ。'bubble'は単一コンテナ、'carousel'は複数のスワイプ可能なバブルを示す。
@@ -36,13 +36,12 @@ LINE公式アカウントとAI Agentを接続するために、LINE Messaging AP
3636
5. **get_profile**
3737
- LINEユーザーの詳細なプロフィール情報を取得する。表示名、プロフィール画像URL、ステータスメッセージ、言語を取得できる。
3838
- **入力:**
39-
- `user_id` (string?): プロフィールを取得したいユーザーのユーザーID。デフォルトはDESTINATION_USER_ID。
39+
- `user_id` (string?): プロフィールを取得したいユーザーのユーザーID。デフォルトはDESTINATION_USER_ID。`user_id`または`DESTINATION_USER_ID`のどちらか一方は必ず設定する必要があります。=======
4040
6. **get_message_quota**
4141
- LINE公式アカウントのメッセージ容量と消費量を取得します。月間メッセージ制限と現在の使用量が表示されます。
4242
- **入力:**
4343
- なし
4444

45-
4645
## インストール (npxを使用)
4746

4847
要件:
@@ -61,7 +60,7 @@ Claude DesktopやClaudeなどのAI Agentに次の設定を追加してくださ
6160
環境変数や引数は次のように設定してください:
6261

6362
- `CHANNEL_ACCESS_TOKEN`: (必須) チャネルアクセストークン。これを取得するには、[こちらの手順](https://developers.line.biz/ja/docs/basics/channel-access-token/#long-lived-channel-access-token)に従ってください。
64-
- `DESTINATION_USER_ID`: (オプション) デフォルトのメッセージ受信者のユーザーID。これを確認するには、[こちらの手順](https://developers.line.biz/ja/docs/messaging-api/getting-user-ids/#get-own-user-id)に従ってください。
63+
- `DESTINATION_USER_ID`: (オプション) デフォルトのメッセージ受信者のユーザーID。Toolの入力に`user_id`が含まれていない場合、`DESTINATION_USER_ID`は必ず設定する必要があります。これを確認するには、[こちらの手順](https://developers.line.biz/ja/docs/messaging-api/getting-user-ids/#get-own-user-id)に従ってください。
6564

6665
```json
6766
{
@@ -109,7 +108,7 @@ Claude DesktopやClaudeなどのAI Agentに次の設定を追加してくださ
109108

110109
- `mcpServers.args`: (必須) `line-bot-mcp-server`へのパス。
111110
- `CHANNEL_ACCESS_TOKEN`: (必須) チャネルアクセストークン。これを取得するには、[こちらの手順](https://developers.line.biz/ja/docs/basics/channel-access-token/#long-lived-channel-access-token)に従ってください。
112-
- `DESTINATION_USER_ID`: (オプション) デフォルトのメッセージ受信者のユーザーID。これを確認するには、[こちらの手順](https://developers.line.biz/ja/docs/messaging-api/getting-user-ids/#get-own-user-id)に従ってください。
111+
- `DESTINATION_USER_ID`: (オプション) デフォルトのメッセージ受信者のユーザーID。Toolの入力に`user_id`が含まれていない場合、`DESTINATION_USER_ID`は必ず設定する必要があります。これを確認するには、[こちらの手順](https://developers.line.biz/ja/docs/messaging-api/getting-user-ids/#get-own-user-id)に従ってください。
113112

114113
```json
115114
{

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
1. **push_text_message**
1717
- Push a simple text message to a user via LINE.
1818
- **Inputs:**
19-
- `user_id` (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID.
19+
- `user_id` (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either `user_id` or `DESTINATION_USER_ID` must be set.
2020
- `message.text` (string): The plain text content to send to the user.
2121
2. **push_flex_message**
2222
- Push a highly customizable flex message to a user via LINE.
2323
- **Inputs:**
24-
- `user_id` (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID.
24+
- `user_id` (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either `user_id` or `DESTINATION_USER_ID` must be set.
2525
- `message.altText` (string): Alternative text shown when flex message cannot be displayed.
2626
- `message.content` (any): The content of the flex message. This is a JSON object that defines the layout and components of the message.
2727
- `message.contents.type` (enum): Type of the container. 'bubble' for single container, 'carousel' for multiple swipeable bubbles.
@@ -62,7 +62,7 @@ Please add the following configuration for an AI Agent like Claude Desktop or Cl
6262
Set the environment variables or arguments as follows:
6363

6464
- `CHANNEL_ACCESS_TOKEN`: (required) Channel Access Token. You can confirm this by following [this instructions](https://developers.line.biz/en/docs/basics/channel-access-token/#long-lived-channel-access-token).
65-
- `DESTINATION_USER_ID`: (optional) The default user ID of the recipient. You can confirm this by following [this instructions](https://developers.line.biz/en/docs/messaging-api/getting-user-ids/#get-own-user-id).
65+
- `DESTINATION_USER_ID`: (optional) The default user ID of the recipient. If the Tool's input does not include `user_id`, `DESTINATION_USER_ID` is required. You can confirm this by following [this instructions](https://developers.line.biz/en/docs/messaging-api/getting-user-ids/#get-own-user-id).
6666

6767
```json
6868
{
@@ -112,7 +112,8 @@ Set the environment variables or arguments as follows:
112112

113113
- `mcpServers.args`: (required) The path to `line-bot-mcp-server`.
114114
- `CHANNEL_ACCESS_TOKEN`: (required) Channel Access Token. You can confirm this by following [this instructions](https://developers.line.biz/en/docs/basics/channel-access-token/#long-lived-channel-access-token).
115-
- `DESTINATION_USER_ID`: (optional) The default user ID of the recipient. You can confirm this by following [this instructions](https://developers.line.biz/en/docs/messaging-api/getting-user-ids/#get-own-user-id).
115+
- `DESTINATION_USER_ID`: (optional) The default user ID of the recipient. If the Tool's input does not include `user_id`, `DESTINATION_USER_ID` is required.
116+
You can confirm this by following [this instructions](https://developers.line.biz/en/docs/messaging-api/getting-user-ids/#get-own-user-id).
116117

117118

118119
```json

0 commit comments

Comments
 (0)