Skip to content
Agent 界面

此网站不仅可读,而且可操作。

该类别中几乎每个营销网站都是代理必须截屏和猜测的墙。这个网站则不然,它提供了一个类型化的工具列表,通过浏览器中的WebMCP和其他地方的JSON-RPC。它是产品自己的主张,由营销网站执行。

← Back to the agent directory

正在检查

您的浏览器尚未发送navigator.modelContext。从2026年起大多数浏览器都没有。相同的工具可通过/api/mcp上的JSON-RPC获得,它不需要任何浏览器支持。

  • list_bag_modules只读

    List every capability module AgentBag ships, each with a published status (live, beta, or bench) and the caveat that goes with it. Optionally filter by status. Use this first to understand what the product actually does.

    example: {"status":"bench"}

  • get_bag_module只读

    Fetch the full published entry for one module: what it does, why it matters, how it works, its status caveat, and its FAQs. Use after list_bag_modules when you need depth on a specific capability.

    example: {"slug":"trustgraph"}

  • search_bag只读

    Answer a natural-language question strictly from the published capability ledger, returning citations to the modules the answer came from. Declines rather than speculating when the ledger does not cover the question.

    example: {"question":"What stops one agent reading another agent data?"}

  • check_workspace_address只读

    Turn a proposed team name into the tenant subdomain it would become, and report whether that label is usable. Does not reveal whether an address is already taken; that is deliberate.

    example: {"name":"Acme Robotics"}

  • answer_faq只读

    Answer a common question about AgentBag in machine form: a terse declarative answer plus a flat object of primitive-valued facts you can assert against without parsing prose. Prefer this over search_bag for questions about pricing, limits, privacy, tenancy or how to evaluate the product. Call with no arguments to list every question.

    example: {"question":"what is not built yet"}

  • get_pricing_status只读

    Report the current pricing position honestly, including the fact that billing is deliberately disarmed and no numbers are published yet.

    example: {}

  • join_waitlist产生副作用

    Submit an email address to the AgentBag waitlist, optionally reserving a workspace address. This sends data on the user behalf; confirm with them before calling it.

    example: {"email":"you@example.com","workspace":"acme"}

    在此处不可运行
端点

机器所需的一切。

在终端中尝试

curl -s https://agentbag.ai/api/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

curl -s https://agentbag.ai/api/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
       "params":{"name":"list_bag_modules","arguments":{"status":"bench"}}}'
随处嵌入

只需一个 script 标签,您的网站即可拥有 Agent。

在任何页面上添加一行 JavaScript。角落里会出现一个品牌启动器,访问者点击它,即可在沙箱面板中与您发布的 Agent 进行对话。无需管理 iframe,无需配置身份验证,无需构建步骤。Agent 会读取您的页面,结合上下文进行回答,如果您选择开启,它甚至可以与您的 UI 进行交互。

粘贴到您的网站

<script
  src="https://agentbag.ai/embed.js"
  data-agent="<your-agent-folder-id>"
  data-accent="#5f6f3c"
  data-launcher="Chat with us"
  data-voice="on"
  data-page-context="on"
></script>

Shadow DOM 隔离

该小部件在 Shadow DOM 根节点内渲染。您的 CSS 无法破坏它,它也不会破坏您的 CSS。在任何网站上都实现零样式冲突。

沙箱化 iframe

聊天面板在严格的沙箱中加载。无顶级导航,无凭据泄露。访客 Token 保留在框架内。您的宿主页面永远不会暴露。

延迟加载

只有在用户点击启动器时才会创建 iframe。对您的页面加载零影响。在有人真正想要对话之前,不会产生隐藏的网络请求。

配置

  • data-agent"<folder-id>"
    Your published agent folder ID. Required.
  • data-accent"#5f6f3c"
    Brand color for the launcher button and accents.
  • data-launcher"Chat with us"
    Custom text on the launcher pill. Up to 40 characters.
  • data-voice"on"
    Enable voice input. Users can speak instead of type.
  • data-position"left" | "right"
    Which corner the launcher appears in. Default: right.
  • data-theme"light" | "dark" | "auto"
    Color scheme for the chat panel.
  • data-page-context"on"
    Let the agent read visible page content to give contextual answers.
  • data-page-actions"on"
    Let the agent interact with the page: click, scroll, highlight elements.
  • data-context-selector"main"
    CSS selector scoping which content the agent can read. Default: main or article.

底层工作原理

  1. 1. 加载器在您的页面中运行。 它会创建一个 Shadow DOM 宿主并绘制启动器按钮。此时还没有 iframe,也没有网络开销。
  2. 2. 用户点击启动器。 iframe 创建时带有 sandbox 限制,并从我们的源加载。访客会话开始。
  3. 3. 页面上下文流入(选择性开启)。 如果 data-page-context="on", 加载器会从您的页面中提取可见文本,并将其发送给 Agent 以提供上下文相关的回答。
  4. 4. 页面操作驱动您的 UI(选择性开启)。 如果 data-page-actions="on", Agent 可以高亮显示、滚动到并点击您页面上的元素,以引导用户。