bluesky_get_liked_posts
Retrieve a list of posts liked by a user on BlueSky, with options to set result limits and pagination for efficient data collection.
Instructions
Get a list of posts liked by the user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Pagination cursor for next page of results | |
| limit | No | Maximum number of liked posts to return (default 50, max 100) |
Input Schema (JSON Schema)
{
"properties": {
"cursor": {
"description": "Pagination cursor for next page of results",
"type": "string"
},
"limit": {
"default": 50,
"description": "Maximum number of liked posts to return (default 50, max 100)",
"type": "integer"
}
},
"type": "object"
}
Implementation Reference
- src/bluesky_mcp/server.py:124-141 (registration)Registration of the 'bluesky_get_liked_posts' tool in the list_tools function, including its description and input schema.types.Tool( name="bluesky_get_liked_posts", description="Get a list of posts liked by the user", inputSchema={ "type": "object", "properties": { "limit": { "type": "integer", "description": "Maximum number of liked posts to return (default 50, max 100)", "default": 50, }, "cursor": { "type": "string", "description": "Pagination cursor for next page of results", }, }, }, ),
- src/bluesky_mcp/server.py:127-140 (schema)Input schema definition for the 'bluesky_get_liked_posts' tool, defining optional limit and cursor parameters.inputSchema={ "type": "object", "properties": { "limit": { "type": "integer", "description": "Maximum number of liked posts to return (default 50, max 100)", "default": 50, }, "cursor": { "type": "string", "description": "Pagination cursor for next page of results", }, }, },
- src/bluesky_mcp/server.py:238-244 (handler)Handler implementation within handle_call_tool that executes the tool logic by calling the Bluesky get_likes API endpoint for the authenticated user.elif name == "bluesky_get_liked_posts": limit = arguments.get("limit", 50) cursor = arguments.get("cursor") response = await asyncio.to_thread( bluesky.client.app.bsky.feed.get_likes, {'uri': IDENTIFIER, 'limit': limit, 'cursor': cursor} )