Get LINE User Profile
line_get_user_profileFetch a LINE user's profile by user ID, including display name, picture, status message, and language. Requires the user to have added your bot and consented to profile sharing.
Instructions
Fetch a LINE user's profile (display name, picture, status message, language) by user_id. Only works if the user has added the bot, has not blocked it, and consented to share profile — any failure returns an ambiguous 404, surfaced as a clear Thai explanation.
Returns { user_id, display_name, picture_url?, status_message?, language? }.
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": {
"user_id": "<user_id>"
},
"name": "line_get_user_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oa | No | ||
| user_id | Yes | LINE user ID (starts with 'U' for chat users) | |
| response_format | No | markdown |