-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (61 loc) · 2.18 KB
/
index.html
File metadata and controls
65 lines (61 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>Python Office - 办公自动化 API</title>
<style>
body { font-family: system-ui; max-width: 900px; margin: 50px auto; padding: 20px; background: #f5f5f5; }
.container { background: white; padding: 40px; border-radius: 12px; }
h1 { color: #333; }
.section { margin: 30px 0; padding: 20px; background: #f9f9f9; border-radius: 8px; }
h2 { color: #444; }
code { background: #e8e8e8; padding: 2px 6px; border-radius: 4px; }
pre { background: #282c34; color: #abb2bf; padding: 15px; border-radius: 6px; overflow-x: auto; }
.endpoint { margin: 15px 0; padding: 15px; background: white; border-left: 4px solid #4CAF50; border-radius: 4px; }
</style>
</head>
<body>
<div class="container">
<h1>📊 Python Office - 办公自动化 API</h1>
<p>为 AI Agents 提供的 Python 办公自动化技能接口</p>
<div class="section">
<h2>📡 API 端点</h2>
<div class="endpoint">
<strong>GET /api/automations</strong> - 获取自动化技能列表
</div>
<div class="endpoint">
<strong>GET /api/automations/ai-friendly</strong> - AI 友好格式
</div>
<div class="endpoint">
<strong>GET /api/automations/:id</strong> - 获取详情
</div>
<div class="endpoint">
<strong>GET /api/categories</strong> - 获取分类
</div>
</div>
<div class="section">
<h2>🤖 MCP Tools</h2>
<div class="endpoint">
<strong>POST /api/mcp</strong> - 调用 MCP 工具
<pre>curl -X POST http://localhost:3004/api/mcp \
-H "Content-Type: application/json" \
-d '{"name":"search_automations","arguments":{"query":"Excel"}}'</pre>
</div>
</div>
<div class="section">
<h2>📊 已收录技能</h2>
<ul>
<li>Excel办公自动化</li>
<li>PDF处理</li>
<li>邮件自动化</li>
<li>网页爬虫</li>
<li>图片处理</li>
<li>Word自动化</li>
<li>数据可视化</li>
<li>文件自动化</li>
</ul>
</div>
<p><code>npm run dev</code> - 启动服务 (http://localhost:3004)</p>
</div>
</body>
</html>