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)
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 |