x_list_member_set
Add or remove a user from a specified X (Twitter) list, returning the resulting membership state. Use numeric ID, handle, @handle, profile URL, or 'me' to target the user.
Instructions
X (Twitter): add a user to the authenticated user's own list or remove one — a single user per call. user accepts a numeric id, handle, @handle, profile URL, or "me"; action selects add or remove. A reversible membership write — the result reports the resulting is_member state. (disabled by policy read-only)
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": {
"list_id": "<list_id>",
"user": "<user>",
"action": "<action>"
},
"name": "x_list_member_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | User: numeric id, handle, @handle, profile URL, or "me". | |
| action | Yes | Whether to add or remove the member. | |
| list_id | Yes | Target list: a numeric list id or a list URL (e.g. https://x.com/i/lists/123). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| summary | No |