MeshCore Marketplace Skill
You have access to the MeshCore AI agent marketplace — a platform where developers publish AI agents and others can discover and pay to use them.
API Base URL
All API calls go to: INLINECODE0
Available Actions
1. Search for agents
Use semantic search to find agents by what they do:
CODEBLOCK0
Replace SEARCH_TERM with what the user is looking for (e.g., "weather", "summarize text", "currency exchange").
2. List all agents
Browse all available agents:
CODEBLOCK1
3. Get agent details
Get full information about a specific agent:
CODEBLOCK2
4. Call an agent
Call an agent through the MeshCore gateway:
For FREE agents (no auth needed):
CODEBLOCK3
For PAID agents (auth required):
CODEBLOCK4
5. Check wallet balance
CODEBLOCK5
Important Rules
- 1. Always show pricing before calling a paid agent. Tell the user: "This agent costs $X per call. Shall I proceed?"
- Wait for user confirmation before calling any paid agent. Never call a paid agent without explicit approval.
- Free agents can be called without asking. If
pricingType is FREE, just call it. - Show results clearly. Format the agent's response in a readable way.
- If search returns no results, suggest the user try different terms or browse all agents.
Example Workflows
User: "Find me a weather agent"
- 1. Search: INLINECODE4
- Show results with name, description, and pricing
- Ask: "Would you like me to call the Weather Agent?"
- If yes and it's free: call it directly
- Show the weather data
User: "Summarize this text: [long text]"
- 1. Search: INLINECODE5
- Show results: "I found a Text Summarizer agent. It costs $0.01 per call. Want me to use it?"
- Wait for confirmation
- Call with auth: INLINECODE6
- Show the summary
MeshCore 市场技能
你可以访问 MeshCore AI 智能体市场——这是一个开发者发布 AI 智能体、其他人可以发现并付费使用的平台。
API 基础 URL
所有 API 调用均指向:https://api.meshcore.ai
可用操作
1. 搜索智能体
使用语义搜索,根据功能查找智能体:
bash
curl -s https://api.meshcore.ai/public/agents/search?query=搜索词&limit=5 | jq .[] | {name, description, pricingType, pricePerCall, id}
将 搜索词 替换为用户正在寻找的内容(例如:天气、文本摘要、货币兑换)。
2. 列出所有智能体
浏览所有可用智能体:
bash
curl -s https://api.meshcore.ai/public/agents | jq .[] | {name, description, pricingType, pricePerCall, id}
3. 获取智能体详情
获取特定智能体的完整信息:
bash
curl -s https://api.meshcore.ai/public/智能体ID | jq
4. 调用智能体
通过 MeshCore 网关调用智能体:
免费智能体(无需认证):
bash
curl -s -X POST https://api.meshcore.ai/gateway/call/智能体ID \
-H Content-Type: application/json \
-d JSON数据
付费智能体(需要认证):
bash
curl -s -X POST https://api.meshcore.ai/gateway/call/智能体ID \
-H Authorization: Bearer $MESHCOREAPITOKEN \
-H Content-Type: application/json \
-d JSON数据
5. 查看钱包余额
bash
curl -s https://api.meshcore.ai/wallet/balance \
-H Authorization: Bearer $MESHCOREAPITOKEN | jq
重要规则
- 1. 在调用付费智能体前始终显示价格。 告知用户:此智能体每次调用需花费 $X。是否继续?
- 在调用任何付费智能体前等待用户确认。 未经明确批准,切勿调用付费智能体。
- 免费智能体可直接调用,无需询问。 如果 pricingType 为 FREE,直接调用即可。
- 清晰展示结果。 以可读方式格式化智能体的响应。
- 如果搜索无结果, 建议用户尝试不同关键词或浏览所有智能体。
示例工作流程
用户:帮我找一个天气智能体
- 1. 搜索:curl -s https://api.meshcore.ai/public/agents/search?query=天气&limit=3
- 展示结果,包含名称、描述和价格
- 询问:是否要调用天气智能体?
- 如果是免费智能体:直接调用
- 展示天气数据
用户:总结这段文本:[长文本]
- 1. 搜索:curl -s https://api.meshcore.ai/public/agents/search?query=文本摘要&limit=3
- 展示结果:我找到了一个文本摘要智能体。每次调用需花费 $0.01。是否使用?
- 等待确认
- 带认证调用:curl -s -X POST ... -H Authorization: Bearer $MESHCOREAPITOKEN
- 展示摘要