Look up X user
lookup_x_userResolve an X handle to a numeric user ID and verify if they can receive DMs before drafting a direct message.
Instructions
Resolve an X @handle to a user id (and whether they can receive DMs from you). Useful before create_dm_draft.
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": {
"username": "<username>"
},
"name": "lookup_x_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | X username, with or without leading @. |