screenpipe-api
Skill này làm gì
Skill này kết nối agent của bạn với dịch vụ Screenpipe cục bộ, để nó tìm kiếm những gì xuất hiện trên màn hình, các cuộc họp và các ứng dụng bạn đã dùng. Dành cho người muốn nhớ lại hoặc tóm tắt công việc đã làm trước đây.
Khi nào nên dùng
- ✓Khi bạn muốn tìm một thứ bạn đã thấy trên màn hình sớm hơn trong ngày hoặc tuần.
- ✓Khi bạn muốn tóm tắt các cuộc họp hoặc ứng dụng đã dùng trong một khoảng thời gian.
- ✓Khi bạn muốn kiểm tra hoạt động từ một thiết bị khác mà Screenpipe đồng bộ.
Liên kết skill
https://github.com/screenpipe/screenpipe/blob/main/.claude/skills/screenpipe-api/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chiều hôm qua tôi đang làm gì? Dùng lịch sử Screenpipe của tôi để tìm ra.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill gửi yêu cầu đến dịch vụ cục bộ của Screenpipe bằng khóa cục bộ của bạn, lưu phản hồi vào một file và chỉ đọc phần trả lời câu hỏi của bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Screenpipe API
Local REST API at http://localhost:3030. Full reference (60+ endpoints): https://docs.screenpi.pe/llms-full.txt
Authentication
ALL requests require authentication. Add the auth header to every curl call:
curl -H "Authorization: Bearer $SCREENPIPE_LOCAL_API_KEY" \
-H "X-Screenpipe-Client: api" \
-H "X-Screenpipe-Agent: unknown" \
"http://localhost:3030/..."
The fixed X-Screenpipe-Client: api value attributes a successful, nonempty
external retrieval to the API surface. Never put an agent name, customer name,
project, prompt, or other dynamic value in this header.
Include both attribution headers above on REST retrievals. The installer sets
X-Screenpipe-Agent to a fixed app identifier; preserve that value. If this is
an unconfigured reference, leave it as unknown. Never substitute a project,
user, model, prompt, or other dynamic identifier.
The $SCREENPIPE_LOCAL_API_KEY env var is already set in your environment. Without it you get 403. The only exception is /health (no auth needed).
Context Window Protection
API responses can be large. Always write curl output to a file first (curl ... -o /tmp/sp_result.json), check size (wc -c /tmp/sp_result.json), and if over 5KB read only the first 50-100 lines. Extract what you need with jq. NEVER dump full large responses into context.
For the list endpoints (/search, /elements, /frames/{id}/elements) you can also cut tokens at the source: add &format=csv (or tsv) to get a columnar table that writes each column name once instead of repeating keys per row, and &fields=a,b,c to return only the columns you need (dotted paths like content.text). On a list of UI elements that is roughly a 70% token cut versus JSON. For the element endpoints specifically, &format=outline (alias tree) goes further still — a deduped, indented tree of just the text-bearing nodes (~91% fewer tokens, measured) — and is the best default for reading UI structure. Use &format=automation for automation planning: it retains interactive controls, state, bounds, allowed actions, short response-local refs, and best-effort stable keys. Text-heavy ocr/audio barely benefit from any reshaping (the text blob dominates), so reach for fields + max_content_length there. With no format/fields the response is unchanged JSON.
1. Search — GET /search
curl -H "Authorization: Bearer $SCREENPIPE_LOCAL_API_KEY" \
-H "X-Screenpipe-Client: api" \
-H "X-Screenpipe-Agent: unknown" \
"http://localhost:3030/search?q=QUERY&content_type=all&limit=10&start_time=1h%20ago"
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q |
string | No | Keywords. Do NOT use for audio searches — transcriptions are noisy, q filters too aggressively. |
content_type |
string | No | all (default), accessibility, audio, input, ocr, memory, parsed. Use parsed for compact app-specific messages, emails, tasks, documents, and code review. Parsed capture is experimental, may be empty when disabled/unsupported, and is not included in all. Screen text is primarily captured via the OS accessibility tree (accessibility); OCR is a fallback for apps without accessibility support. |
limit |
integer | No | Max 1-20. Default: 10 |
offset |
integer | No | Pagination. Default: 0 |
start_time |
ISO 8601, relative, or local calendar | Yes | Accepts 2024-01-15T10:00:00Z, 16h ago, today, yesterday, or YYYY-MM-DD |
end_time |
Same as start_time |
No | Defaults to now |
app_name |
string | No | e.g. "Google Chrome", "Slack", "zoom.us" |
window_name |
string | No | Window title substring |
frame_id |
integer | No | With content_type=parsed, return parsed data attached to one frame. |
actor_id |
integer | No | With content_type=parsed, filter by a resolved actor identity. |
speaker_name |
string | No | Filter audio by speaker (case-insensitive partial) |
focused |
boolean | No | Only focused windows |
tags |
string | No | Comma-separated; return only items carrying ALL of them (e.g. person:ada,project:atlas). Works for screen/audio and, with content_type=memory, memories. See Tags below. |
include_related |
boolean | No | With tags, also return a related map of co-occurring tags (people/projects/workflows seen alongside yours), most-frequent first. One call for the surrounding context instea |
Câu hỏi thường gặp
Nó có cần khóa không?
Có. Dịch vụ cục bộ yêu cầu khóa, và yêu cầu sẽ thất bại nếu không có khóa.
Nó chỉ tìm trên máy tính của tôi thôi à?
Nó truy vấn dịch vụ Screenpipe chạy trên máy tính của bạn, và cũng có thể bao gồm các thiết bị đã đồng bộ khi chúng được thiết lập.
Nó có xuất được media không?
Có. Xuất media và phiên âm lại là một trong những việc nó có thể làm.
Chi tiết
Mô tả gốc của tác giả
Query the user's local and synced-device Screenpipe data via the REST API at localhost:3030. Use for screen activity, meetings, apps, productivity, other-device or cross-device history, media export, retranscription, or connected services.
repo: screenpipe/screenpipe
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10143
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
screenpipe-cli
22kCho phép agent của bạn chạy các pipe và kết nối của Screenpipe từ terminal, như bật, chạy hoặc gỡ lỗi các tự động hóa AI theo lịch.
screenpipe-health
22kGiúp agent của bạn kiểm tra Screenpipe có đang chạy và ghi hình đúng không, rồi chỉ ra vấn đề như dịch vụ dừng hoặc tốn nhiều đĩa.
screenpipe-logs
22kGiúp agent của bạn tìm và đọc log dòng lệnh cùng log ứng dụng desktop của Screenpipe, để nó phát hiện lỗi và hiểu chuyện gì đã xảy ra vào một thời điểm nhất định.
render-html-report
22kGiúp agent của bạn biến bản tóm tắt thành báo cáo HTML trực quan có biểu đồ hoặc dashboard, hiển thị trong trình xem Screenpipe.
Skill tương tự
knowledge-capture
394kDạy agent của bạn lưu các quyết định, sở thích và sự kiện quan trọng vào kho Knowledge dưới dạng ghi chú ngắn có ghi nguồn.
knowledge-claim-consolidation
394kGiúp agent của bạn dọn gọn kho Knowledge bằng cách gộp các khẳng định trùng lặp, chuyển chúng đến đúng trang chủ đề và loại bỏ những cái lỗi thời.
knowledge-correct
394kCho phép agent của bạn sửa hoặc rút lại một khẳng định hoặc trang Knowledge cụ thể theo yêu cầu của bạn, và giữ nhật ký những gì đã thay đổi.