get_trash
Retrieve deleted or trashed tasks from the Things app to review, restore, or manage them efficiently using the Things MCP Server.
Instructions
Get trashed todos
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- things_server.py:77-84 (handler)The main handler function for the 'get_trash' tool. It retrieves trashed todos using the 'things.trash' method, formats them with 'format_todo', and returns a concatenated string of the formatted todos separated by delimiters. If no todos, returns 'No items found'.@mcp.tool async def get_trash() -> str: """Get trashed todos""" todos = things.trash(include_items=True) if not todos: return "No items found" formatted_todos = [format_todo(todo) for todo in todos] return "\n\n---\n\n".join(formatted_todos)