{"id":32936,"date":"2025-07-21T06:19:39","date_gmt":"2025-07-20T22:19:39","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=32936"},"modified":"2025-07-21T06:19:39","modified_gmt":"2025-07-20T22:19:39","slug":"peekaboo","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/pt\/peekaboo\/","title":{"rendered":"Peekaboo\uff1amacOS\u5c4f\u5e55\u6355\u6349\u4e0e\u89c6\u89c9\u95ee\u7b54\u5de5\u5177"},"content":{"rendered":"<p>Peekaboo \u662f\u4e00\u4e2a\u4e13\u4e3a macOS \u8bbe\u8ba1\u7684\u5de5\u5177\uff0c\u65e8\u5728\u4e3a AI \u52a9\u624b\u63d0\u4f9b\u5feb\u901f\u3001\u975e\u4fb5\u5165\u5f0f\u7684\u5c4f\u5e55\u6355\u6349\u548c\u89c6\u89c9\u95ee\u7b54\uff08VQA\uff09\u529f\u80fd\u3002\u5b83\u901a\u8fc7\u82f9\u679c\u7684 ScreenCaptureKit \u6280\u672f\u5b9e\u73b0\u9ad8\u6548\u5c4f\u5e55\u6355\u6349\uff0c\u652f\u6301\u6355\u6349\u6574\u4e2a\u5c4f\u5e55\u3001\u7279\u5b9a\u5e94\u7528\u6216\u7a97\u53e3\uff0c\u5e76\u53ef\u7ed3\u5408\u672c\u5730\u6216\u4e91\u7aef AI \u6a21\u578b\u5206\u6790\u56fe\u50cf\u5185\u5bb9\u3002Peekaboo \u63d0\u4f9b\u547d\u4ee4\u884c\u754c\u9762\uff08CLI\uff09\u548c <a href=\"https:\/\/www.kdjingpai.com\/model-context-protocol\/\">MCP<\/a> \u670d\u52a1\u5668\u4e24\u79cd\u4f7f\u7528\u65b9\u5f0f\uff0c\u9002\u5408\u5f00\u53d1\u8005\u548c\u9700\u8981\u81ea\u52a8\u5316\u89c6\u89c9\u5904\u7406\u7684\u573a\u666f\u3002\u5b83\u7684\u8bbe\u8ba1\u6ce8\u91cd\u9690\u79c1\u4fdd\u62a4\uff0c\u652f\u6301\u672c\u5730 AI \u6a21\u578b\u8fd0\u884c\uff0c\u4e14\u6355\u6349\u8fc7\u7a0b\u4e0d\u5e72\u6270\u7528\u6237\u64cd\u4f5c\u3002\u5de5\u5177\u901a\u8fc7 npm \u5305\u6216 Homebrew \u5b89\u88c5\uff0c\u6613\u4e8e\u96c6\u6210\u5230\u5f00\u53d1\u6d41\u7a0b\u4e2d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/e1cb78fd268b238.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li>\u5feb\u901f\u6355\u6349 macOS \u5c4f\u5e55\uff0c\u652f\u6301\u6574\u4e2a\u5c4f\u5e55\u3001\u7279\u5b9a\u5e94\u7528\u6216\u7a97\u53e3\u3002<\/li>\n<li>\u652f\u6301\u89c6\u89c9\u95ee\u7b54\uff08VQA\uff09\uff0c\u53ef\u5bf9\u6355\u6349\u7684\u56fe\u50cf\u8fdb\u884c AI \u5206\u6790\u3002<\/li>\n<li>\u63d0\u4f9b\u6a21\u7cca\u5339\u914d\u529f\u80fd\uff0c\u7cbe\u51c6\u5b9a\u4f4d\u76ee\u6807\u7a97\u53e3\u3002<\/li>\n<li>\u652f\u6301\u591a\u79cd\u8f93\u51fa\u683c\u5f0f\uff0c\u5305\u62ec PNG\u3001JPG \u548c Base64\u3002<\/li>\n<li>\u81ea\u52a8\u79fb\u9664\u7a97\u53e3\u9634\u5f71\u548c\u8fb9\u6846\uff0c\u63d0\u5347\u56fe\u50cf\u6e05\u6670\u5ea6\u3002<\/li>\n<li>\u96c6\u6210\u672c\u5730 AI \u6a21\u578b\uff08\u5982 Ollama\uff09\u6216\u4e91\u7aef\u6a21\u578b\uff08\u5982 GPT-4 Vision\u3001Claude\uff09\u3002<\/li>\n<li>\u975e\u4fb5\u5165\u5f0f\u6355\u6349\uff0c\u4e0d\u5e72\u6270\u5f53\u524d\u7a97\u53e3\u7126\u70b9\u3002<\/li>\n<li>\u63d0\u4f9b TypeScript \u652f\u6301\u548c JSON API\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u96c6\u6210\u3002<\/li>\n<li>\u652f\u6301\u7a97\u53e3\u548c\u5e94\u7528\u7ba1\u7406\uff0c\u83b7\u53d6\u8fd0\u884c\u4e2d\u7684\u5e94\u7528\u548c\u7a97\u53e3\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<p>Peekaboo \u63d0\u4f9b\u591a\u79cd\u5b89\u88c5\u65b9\u5f0f\uff0c\u9002\u5408\u4e0d\u540c\u7528\u6237\u9700\u6c42\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<h4>\u65b9\u5f0f\u4e00\uff1a\u901a\u8fc7 Homebrew \u5b89\u88c5\uff08\u63a8\u8350\uff09<\/h4>\n<p>Homebrew \u662f macOS \u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5b89\u88c5 Peekaboo \u7b80\u5355\u5feb\u6377\u3002<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff0c\u6dfb\u52a0 Peekaboo \u7684 Homebrew \u4ed3\u5e93\uff1a\n<pre><code>brew tap steipete\/tap\r\n<\/code><\/pre>\n<\/li>\n<li>\u5b89\u88c5 Peekaboo\uff1a\n<pre><code>brew install peekaboo\r\n<\/code><\/pre>\n<\/li>\n<li>\u9a8c\u8bc1\u5b89\u88c5\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u7248\u672c\uff1a\n<pre><code>peekaboo --version\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4>\u65b9\u5f0f\u4e8c\uff1a\u901a\u8fc7 npm \u5b89\u88c5\uff08\u5305\u542b MCP \u670d\u52a1\u5668\uff09<\/h4>\n<p>\u9002\u5408\u9700\u8981 MCP \u670d\u52a1\u5668\u529f\u80fd\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<ol>\n<li>\u786e\u4fdd\u5df2\u5b89\u88c5 Node.js\uff08\u5efa\u8bae\u7248\u672c 16 \u6216\u66f4\u9ad8\uff09\u3002<\/li>\n<li>\u5728\u7ec8\u7aef\u8fd0\u884c\uff1a\n<pre><code>npm install -g @steipete\/peekaboo-mcp\r\n<\/code><\/pre>\n<\/li>\n<li>\u9a8c\u8bc1\u5b89\u88c5\uff1a\n<pre><code>peekaboo --version\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4>\u65b9\u5f0f\u4e09\uff1a\u4ece\u6e90\u7801\u6784\u5efa<\/h4>\n<p>\u9002\u5408\u9700\u8981\u81ea\u5b9a\u4e49\u529f\u80fd\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<ol>\n<li>\u514b\u9686 GitHub \u4ed3\u5e93\uff1a\n<pre><code>git clone https:\/\/github.com\/steipete\/peekaboo.git\r\ncd peekaboo\r\n<\/code><\/pre>\n<\/li>\n<li>\u5b89\u88c5\u4f9d\u8d56\uff1a\n<pre><code>npm install\r\n<\/code><\/pre>\n<\/li>\n<li>\u6784\u5efa CLI \u548c MCP \u670d\u52a1\u5668\uff1a\n<pre><code>npm run build:all\r\n<\/code><\/pre>\n<\/li>\n<li>\uff08\u53ef\u9009\uff09\u5b89\u88c5 CLI \u5230\u7cfb\u7edf\u8def\u5f84\uff1a\n<pre><code>.\/scripts\/build-cli-standalone.sh --install\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4>\u65b9\u5f0f\u56db\uff1a\u76f4\u63a5\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u6587\u4ef6<\/h4>\n<ol>\n<li>\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff1a\n<pre><code>curl -L https:\/\/github.com\/steipete\/peekaboo\/releases\/latest\/download\/peekaboo-macos-universal.tar.gz | tar xz\r\n<\/code><\/pre>\n<\/li>\n<li>\u79fb\u52a8\u5230\u7cfb\u7edf\u8def\u5f84\uff1a\n<pre><code>sudo mv peekaboo-macos-universal\/peekaboo \/usr\/local\/bin\/\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h3>\u914d\u7f6e AI \u6a21\u578b<\/h3>\n<p>Peekaboo \u652f\u6301\u672c\u5730\u548c\u4e91\u7aef AI \u6a21\u578b\uff0c\u7528\u4e8e\u89c6\u89c9\u95ee\u7b54\u529f\u80fd\u3002\u4ee5\u4e0b\u4ee5\u672c\u5730 <a href=\"https:\/\/www.kdjingpai.com\/ollama\/\">Ollama<\/a> \u6a21\u578b\u4e3a\u4f8b\uff1a<\/p>\n<ol>\n<li>\u5b89\u88c5 Ollama\uff1a\n<pre><code>brew install ollama\r\nollama serve\r\n<\/code><\/pre>\n<\/li>\n<li>\u4e0b\u8f7d\u89c6\u89c9\u6a21\u578b\uff08\u5982 llava \u6216 qwen2-vl\uff09\uff1a\n<pre><code>ollama pull llava:latest\r\nollama pull qwen2-vl:7b\r\n<\/code><\/pre>\n<\/li>\n<li>\u914d\u7f6e Peekaboo\uff1a\n<pre><code>peekaboo config edit\r\n<\/code><\/pre>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bbe\u7f6e AI \u63d0\u4f9b\u8005\u4e3a\u00a0<code>&lt;ollama\/llava:latest&gt;<\/code>\u00a0\u6216\u5176\u4ed6\u6a21\u578b\u3002<\/li>\n<\/ol>\n<h3>\u4e3b\u8981\u529f\u80fd\u64cd\u4f5c<\/h3>\n<h4>\u5c4f\u5e55\u6355\u6349<\/h4>\n<p>Peekaboo \u652f\u6301\u591a\u79cd\u6355\u6349\u6a21\u5f0f\uff1a<\/p>\n<ul>\n<li><strong>\u6574\u4e2a\u5c4f\u5e55<\/strong>\uff1a\u6355\u6349\u5168\u5c4f\u5185\u5bb9\u3002\n<pre><code>peekaboo capture screen --output screen.png\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u7279\u5b9a\u5e94\u7528<\/strong>\uff1a\u901a\u8fc7\u5e94\u7528\u540d\u79f0\uff08\u652f\u6301\u6a21\u7cca\u5339\u914d\uff09\u6355\u6349\u3002\n<pre><code>peekaboo capture app \"Visual Studio Code\" --output code.png\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u7279\u5b9a\u7a97\u53e3<\/strong>\uff1a\u901a\u8fc7\u7a97\u53e3\u6807\u9898\u6216\u7d22\u5f15\u6355\u6349\u3002\n<pre><code>peekaboo capture window --title \"Document\" --output doc.png\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u8f93\u51fa\u683c\u5f0f<\/strong>\uff1a\u652f\u6301 PNG\u3001JPG \u6216 Base64\u3002\n<pre><code>peekaboo capture screen --format base64\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>\u89c6\u89c9\u95ee\u7b54\uff08VQA\uff09<\/h4>\n<p>\u7528\u6237\u53ef\u5bf9\u6355\u6349\u7684\u56fe\u50cf\u63d0\u95ee\uff0cAI \u6a21\u578b\u4f1a\u5206\u6790\u56fe\u50cf\u5e76\u56de\u7b54\u3002<\/p>\n<ol>\n<li>\u6355\u6349\u56fe\u50cf\u5e76\u63d0\u95ee\uff1a\n<pre><code>peekaboo capture screen --question \"What is the main text on the screen?\" --output result.json\r\n<\/code><\/pre>\n<\/li>\n<li>\u8f93\u51fa\u7ed3\u679c\u4e3a JSON \u683c\u5f0f\uff0c\u5305\u542b\u56fe\u50cf\u548c AI \u56de\u7b54\u3002<\/li>\n<\/ol>\n<h4>\u7a97\u53e3\u7ba1\u7406<\/h4>\n<p>\u5217\u51fa\u8fd0\u884c\u4e2d\u7684\u5e94\u7528\u548c\u7a97\u53e3\uff1a<\/p>\n<pre><code>peekaboo list apps\r\npeekaboo list windows --app \"Safari\"\r\n<\/code><\/pre>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u786e\u4fdd macOS \u6388\u4e88 Peekaboo \u5c4f\u5e55\u5f55\u5236\u6743\u9650\uff08\u7cfb\u7edf\u8bbe\u7f6e &gt; \u9690\u79c1\u4e0e\u5b89\u5168\u6027 &gt; \u5c4f\u5e55\u5f55\u5236\uff09\u3002<\/li>\n<li>\u672c\u5730 AI \u6a21\u578b\u9700\u8981\u8db3\u591f\u786c\u4ef6\u8d44\u6e90\uff0c\u63a8\u8350\u4f7f\u7528 16GB \u4ee5\u4e0a\u5185\u5b58\u3002<\/li>\n<li>\u7f51\u7edc\u8fde\u63a5\u7a33\u5b9a\u4ee5\u786e\u4fdd\u4e91\u7aef\u6a21\u578b\u6b63\u5e38\u8fd0\u884c\u3002<\/li>\n<li>\u8be6\u7ec6\u6587\u6863\u53ef\u5728 GitHub \u67e5\u770b\uff1a\n<pre><code>open https:\/\/github.com\/steipete\/peekaboo\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>\u5f00\u53d1\u8005\u8c03\u8bd5<\/strong><br \/>\n\u5f00\u53d1\u8005\u53ef\u4f7f\u7528 Peekaboo \u6355\u6349\u5e94\u7528\u7a97\u53e3\uff0c\u5206\u6790 UI \u5143\u7d20\u6216\u9519\u8bef\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u6355\u6349\u4ee3\u7801\u7f16\u8f91\u5668\u7a97\u53e3\u5e76\u8be2\u95ee\u201c\u4ee3\u7801\u4e2d\u662f\u5426\u6709\u8bed\u6cd5\u9519\u8bef\u201d\uff0c\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u3002<\/li>\n<li><strong>\u81ea\u52a8\u5316\u5de5\u4f5c\u6d41<\/strong><br \/>\nAI \u52a9\u624b\u53ef\u901a\u8fc7 Peekaboo \u76d1\u63a7\u5c4f\u5e55\u5185\u5bb9\uff0c\u81ea\u52a8\u6267\u884c\u4efb\u52a1\u3002\u4f8b\u5982\uff0c\u6355\u6349\u6d4f\u89c8\u5668\u7a97\u53e3\u5e76\u63d0\u53d6\u7f51\u9875\u6587\u672c\uff0c\u7528\u4e8e\u6570\u636e\u5206\u6790\u3002<\/li>\n<li><strong>\u6559\u80b2\u4e0e\u57f9\u8bad<\/strong><br \/>\n\u6559\u5e08\u53ef\u6355\u6349\u6559\u5b66\u8f6f\u4ef6\u754c\u9762\uff0c\u7ed3\u5408 VQA \u529f\u80fd\u751f\u6210\u6559\u5b66\u6750\u6599\u3002\u4f8b\u5982\uff0c\u63d0\u95ee\u201c\u56fe\u8868\u4e2d\u7684\u6570\u636e\u70b9\u662f\u4ec0\u4e48\u201d\uff0c\u5feb\u901f\u6574\u7406\u8bfe\u7a0b\u5185\u5bb9\u3002<\/li>\n<li><strong>\u8fdc\u7a0b\u6280\u672f\u652f\u6301<\/strong><br \/>\n\u6280\u672f\u652f\u6301\u4eba\u5458\u53ef\u6355\u6349\u7528\u6237\u5c4f\u5e55\uff0c\u5206\u6790\u754c\u9762\u95ee\u9898\u5e76\u63d0\u4f9b\u6307\u5bfc\uff0c\u65e0\u9700\u7528\u6237\u624b\u52a8\u53d1\u9001\u622a\u56fe\u3002<\/li>\n<\/ol>\n<h2>QA<\/h2>\n<ol>\n<li><strong>Peekaboo \u652f\u6301\u54ea\u4e9b AI \u6a21\u578b\uff1f<\/strong><br \/>\n\u652f\u6301\u672c\u5730\u6a21\u578b\uff08\u5982 Ollama \u7684 llava \u548c qwen2-vl\uff09\u4ee5\u53ca\u4e91\u7aef\u6a21\u578b\uff08\u5982 GPT-4 Vision\u3001Claude\uff09\u3002<\/li>\n<li><strong>\u662f\u5426\u9700\u8981\u6301\u7eed\u8054\u7f51\uff1f<\/strong><br \/>\n\u4f7f\u7528\u672c\u5730\u6a21\u578b\u65e0\u9700\u8054\u7f51\uff0c\u4f7f\u7528\u4e91\u7aef\u6a21\u578b\u9700\u8981\u7a33\u5b9a\u7f51\u7edc\u3002<\/li>\n<li><strong>\u5982\u4f55\u786e\u4fdd\u6355\u6349\u4e0d\u5e72\u6270\u64cd\u4f5c\uff1f<\/strong><br \/>\nPeekaboo \u4f7f\u7528 ScreenCaptureKit\uff0c\u6355\u6349\u65f6\u4e0d\u66f4\u6539\u7a97\u53e3\u7126\u70b9\uff0c\u4fdd\u8bc1\u975e\u4fb5\u5165\u5f0f\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u5982\u4f55\u5904\u7406\u6743\u9650\u95ee\u9898\uff1f<\/strong><br \/>\n\u9996\u6b21\u8fd0\u884c\u9700\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u6388\u4e88\u5c4f\u5e55\u5f55\u5236\u6743\u9650\uff0c\u5426\u5219\u65e0\u6cd5\u6355\u6349\u5c4f\u5e55\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Peekaboo \u662f\u4e00\u4e2a\u4e13\u4e3a macOS \u8bbe\u8ba1\u7684\u5de5\u5177\uff0c\u65e8\u5728\u4e3a AI \u52a9\u624b\u63d0\u4f9b\u5feb\u901f\u3001\u975e\u4fb5\u5165\u5f0f\u7684\u5c4f\u5e55\u6355\u6349\u548c\u89c6\u89c9\u95ee\u7b54\uff08VQA\uff09\u529f\u80fd\u3002\u5b83\u901a\u8fc7\u82f9\u679c\u7684 ScreenCaptureKit \u6280\u672f\u5b9e\u73b0\u9ad8\u6548\u5c4f\u5e55\u6355\u6349\uff0c\u652f\u6301\u6355\u6349\u6574\u4e2a\u5c4f\u5e55\u3001\u7279\u5b9a\u5e94\u7528\u6216\u7a97\u53e3\uff0c\u5e76\u53ef\u7ed3\u5408\u672c&#8230;<\/p>\n","protected":false},"author":1,"featured_media":32782,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,418,482],"tags":[],"class_list":["post-32936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","category-ai-life","category-computer-tools"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/32936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/comments?post=32936"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/32936\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media\/32782"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media?parent=32936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/categories?post=32936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/tags?post=32936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}