x-twitter.user_info
Fetch public profile metadata for an X (Twitter) user.
Provide user_name (handle without @) or rest_id (numeric user id). At least one is required. When rest_id is set, it takes precedence over user_name. Returns display name, bio, follower counts, verification flags, avatar URLs, and related profile fields.
Cost = 2 tokens.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x-twitter.user_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rest_id | No | Numeric X user id (rest_id). When provided, user_name is ignored. | |
| user_name | No | X handle without the leading @ (for example elonmusk). Required when rest_id is omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Numeric X user id (may duplicate rest_id). | |
| desc | No | Profile bio / description. | |
| name | No | Display name shown on the profile. | |
| avatar | No | Profile avatar image URL. | |
| status | No | Profile lookup status from the upstream provider. | |
| friends | No | Number of accounts the user follows. | |
| profile | No | X screen name (handle). | |
| rest_id | No | Numeric X user id. | |
| location | No | Profile location string. | |
| protected | No | Whether the account is protected (private). | |
| sub_count | No | Follower count. | |
| affiliates | No | Affiliate account metadata when present (object or empty array from the provider). Additional provider-specific fields may appear. | |
| created_at | No | Account creation timestamp from X. | |
| media_count | No | Total media item count. | |
| header_image | No | Profile banner image URL. | |
| blue_verified | No | Whether the account has X blue verification. | |
| statuses_count | No | Total post count. | |
| business_account | No | Business account metadata when present (object with counts or empty array from the provider when not applicable). | |
| verification_type | No | Verification type label from X when present. | |
| pinned_tweet_ids_str | No | Pinned tweet ids for the profile when present. |