Development
输入标题、描述和 URL,按 2026 年当前 Google 规则像素级模拟搜索结果样式:桌面单行 ~600px 标题、移动端两行截断、桌面“站点名 › 路径”与移动端仅域名(2025 年 1 月改版)、评分星标与商品价格富媒体、日期行、浅色与深色双主题、像素用量仪表与诊断(含 FAQ 富媒体已于 2026 年 5 月移除的现状提示)。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/serp-preview-simulator' \
-H 'Content-Type: application/json' \
-d '{"title":"Sourdough Starter Guide: First Rise to Fridge Care","description":"A practical sourdough starter schedule with feeding ratios, temperature notes, and fridge storage rules so your first loaf rises on time.","url":"breadcircle.io/guides/sourdough-starter","siteName":"Bread Circle","date":"2026-08-01","richResult":"none","rating":4.6,"reviewCount":0,"price":"","device":"both","theme":"both"}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/serp-preview-simulator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| title | text | 是 | — |
| description | textarea | 否 | — |
| url | text | 是 | — |
| siteName | text | 否 | — |
| date | text | 否 | — |
| richResult | select | 否 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-serp-preview-simulator": {
"name": "serp-preview-simulator",
"description": "输入标题、描述和 URL,按 2026 年当前 Google 规则像素级模拟搜索结果样式:桌面单行 ~600px 标题、移动端两行截断、桌面“站点名 › 路径”与移动端仅域名(2025 年 1 月改版)、评分星标与商品价格富媒体、日期行、浅色与深色双主题、像素用量仪表与诊断(含 FAQ 富媒体已于 2026 年 5 月移除的现状提示)。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=serp-preview-simulator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "serp-preview-simulator",
"arguments": {
"title": "Sourdough Starter Guide: First Rise to Fridge Care",
"description": "A practical sourdough starter schedule with feeding ratios, temperature notes, and fridge storage rules so your first loaf rises on time.",
"url": "breadcircle.io/guides/sourdough-starter",
"siteName": "Bread Circle",
"date": "2026-08-01",
"richResult": "none",
"rating": 4.6,
"reviewCount": 0,
"price": "",
"device": "both",
"theme": "both"
}
}
}有问题或反馈?请联系 [email protected]
| — |
| rating | number | 否 | — |
| reviewCount | number | 否 | — |
| price | text | 否 | — |
| device | select | 否 | — |
| theme | select | 否 | — |
HTML 结果
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}