delete_bookmark
Remove tweets from your saved bookmarks on X (Twitter) by specifying the tweet ID to declutter and organize your saved content.
Instructions
Removes the tweet from bookmarks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tweet_id | Yes |
Implementation Reference
- src/x_twitter_mcp/server.py:316-326 (handler)The main handler function for the 'delete_bookmark' tool. It checks rate limits, initializes the Twitter client, calls client.remove_bookmark to delete the bookmark for the given tweet_id, and returns a confirmation dictionary.async def delete_bookmark(tweet_id: str) -> Dict: """Removes a bookmark. Args: tweet_id (str): The ID of the tweet to remove from bookmarks. """ if not check_rate_limit("tweet_actions"): raise Exception("Tweet action rate limit exceeded") client, _ = initialize_twitter_clients() result = client.remove_bookmark(tweet_id=tweet_id) return {"tweet_id": tweet_id, "bookmarked": not result.data["bookmarked"]}
- src/x_twitter_mcp/server.py:315-315 (registration)The FastMCP decorator that registers the delete_bookmark function as a tool named 'delete_bookmark' with the specified description.@server.tool(name="delete_bookmark", description="Removes the tweet from bookmarks")