Create a .env file in the skill directory (skills/usememos/.env):
USEMEMOS_URL=http://192.168.0.157:5230
USEMEMOS_TOKEN=your_access_token_here
Get your ``USEMEMOS_TOKEN`` from UseMemos instance, login and go to: Settings > My Account > Access Tokens, create one there, do not forget to assign expiration (i use Never to avoid troubles, but hey there are also arguments against that)
Note: All scripts automatically load the .env file from the skill directory. No need to export variables manually.
| Script | Usage | Description | ||
|---|---|---|---|---|
| -------- | ------- | ------------- | ||
create_memo.py | | Create a memo (visibility: PRIVATE/PROTECTED/PUBLIC) | ||
list_memos.py | [limit] [tag] | List recent memos (default: 10) | ||
search_memos.py | | Search memos by content | ||
upload_attachment.py | | Upload a file attachment | ||
upload_and_link_attachment.py | | Upload and link attachment to a memo | ||
memo_comments.py | `| add\ | delete> [args...]` | Manage comments on a memo | |
All scripts are in scripts/ and run with python3 scripts/.
# Create a memo with tags
python3 scripts/create_memo.py "Meeting notes from standup #work"
# List recent memos
python3 scripts/list_memos.py 5
# Search memos
python3 scripts/search_memos.py "website redesign"
# Upload attachment standalone
python3 scripts/upload_attachment.py photo.jpg "sale_photo.jpg" "image/jpeg"
# Create memo then attach a file
python3 scripts/create_memo.py "Sale: Stromer Charger #eBike #income"
# Use the memo ID from output:
python3 scripts/upload_and_link_attachment.py <memo_id> charger_photo.jpg
# Add a comment to a memo
python3 scripts/memo_comments.py add <memo_id> "Looks great!"
# List comments on a memo
python3 scripts/memo_comments.py list <memo_id>
# Delete a comment
python3 scripts/memo_comments.py delete <comment_id>
3UZ7uBbHsLEAwdYE5HKhjd (not memos/3UZ7uBbHsLEAwdYE5HKhjd)#tag syntax inline in memo contentimage/jpeg; pass the type explicitly for other files. Normally this will be done automatically by openclaw, but sometimes will require some tweaking/See references/api.md for endpoint documentation.
共 3 个版本