get_tagged_items
Filter and retrieve items associated with a specific tag in the Things app using natural language commands. Simplify task and project management by organizing tagged items efficiently.
Instructions
Get items with a specific tag
Args: tag: Tag title to filter by
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes |
Implementation Reference
- things_server.py:150-162 (handler)Handler function decorated with @mcp.tool that implements the get_tagged_items tool. It retrieves todos associated with a specific tag using the 'things' library and formats the output using format_todo.@mcp.tool async def get_tagged_items(tag: str) -> str: """Get items with a specific tag Args: tag: Tag title to filter by """ todos = things.todos(tag=tag, include_items=True) if not todos: return f"No items found with tag '{tag}'" formatted_todos = [format_todo(todo) for todo in todos] return "\n\n---\n\n".join(formatted_todos)