X users
x_usersLook up X profiles, search accounts, and manage followers, following, mutes, and blocks. Retrieve one or many users and perform follow, unfollow, mute, unmute, block, or unblock actions.
Instructions
Profiles and relationships: look up me/one/many, search users, followers, following, follow/unfollow, mute/unmute, block/unblock, muted and blocked lists.
Actions (pass "action" plus that action's parameters):
me: Profile of the authenticated account: id, handle, bio, follower counts and pinned post.
get: Look up one account by handle or numeric id.
get_many: Batch lookup of up to 100 accounts by handle or id in a single request.
search: Search accounts by keyword (name, handle, bio) with 1-100 results per page. [requires: query]
followers: Accounts following a user, 1-1000 per page (X caps at 1000).
following: Accounts a user follows, 1-1000 per page.
follow: Follow an account as the authenticated user.
unfollow: Unfollow an account as the authenticated user.
mute: Mute an account for the authenticated user.
unmute: Unmute an account for the authenticated user.
block: Block an account on behalf of the authenticated user.
unblock: Unblock an account.
muted: Accounts muted by the authenticated user (1-100 per page).
blocked: Accounts blocked by the authenticated user (1-1000 per page).
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": {
"action": "<action>"
},
"name": "x_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Keyword or phrase, e.g. "rust developer" or "climate tech". | |
| action | Yes | Action to perform. One of: me, get, get_many, search, followers, following, follow, unfollow, mute, unmute, block, unblock, muted, blocked. | |
| user_id | No | Numeric X user id. | |
| user_ids | No | Numeric ids to look up. | |
| username | No | X handle without the @ prefix. | |
| usernames | No | Handles to look up (no @). | |
| next_token | No | Cursor from a previous response (meta.next_token). | |
| max_results | No | ||
| target_user_id | No | Numeric id of the target account. | |
| target_username | No | Handle of the target account (without @). |