Interact with Readwise Reader library to list, create, update, and delete documents. Use when the user wants to manage their saved articles, reading lists, or retrieve document content. Triggers on mentions of "Readwise Reader", "Reader API", or requests to save/read/archive web articles. --- # Reader Interact with Readwise Reader library using executable scripts. ## Quick Start All Reader operations are available as scripts in the `scripts/` subdirectory: | Script | Purpose | Input | |--------|---------|-------| | `list_documents.py` | Query documents | CLI flags | | `create_document.py` | Save URL/content | JSON payload | | `update_document.py` | Modify document | JSON payload | | `bulk_update_documents.py` | Batch modify (max 50) | JSON payload | | `delete_document.py` | Remove documents | JSON payload | | `list_tags.py` | List all tags | CLI flags | ## Authentication Set the `READWISE_ACCESS_TOKEN` environment variable using one of these methods: ### Method 1: Using a `.env` file Create a `.env` file in the project directory: ```bash READWISE_ACCESS_TOKEN=your-token-here ``` The scripts automatically load environment variables from `.env` using `python-dotenv`. ### Method 2: Command line **Export in shell:** ```bash export READWISE_ACCESS_TOKEN=your-token-here ``` **Or inline for a single command:** ```bash READWISE_ACCESS_TOKEN=your-token-here python scripts/list_documents.py ``` ### Getting your token