core-actionbook

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Actionbook

Actionbook

Pre-computed action manuals for browser automation. Agents receive structured page information instead of parsing entire HTML.
用于浏览器自动化的预计算操作手册。Agent将接收结构化页面信息,而非解析完整HTML。

Workflow

工作流

  1. search_actions - Search by keyword, returns URL-based action IDs with content previews
  2. get_action_by_id - Get full action manual with page details, DOM structure, and element selectors
  3. Execute - Use returned selectors with your browser automation tool
  1. search_actions - 按关键词搜索,返回带内容预览的基于URL的操作ID
  2. get_action_by_id - 获取包含页面详情、DOM结构和元素选择器的完整操作手册
  3. Execute - 将返回的选择器用于你的浏览器自动化工具

MCP Tools

MCP工具

  • search_actions
    - Search by keyword. Returns: URL-based action IDs, content previews, relevance scores
  • get_action_by_id
    - Get full action details. Returns: action content, page element selectors (CSS/XPath), element types, allowed methods (click, type, extract), document metadata
  • search_actions
    - 按关键词搜索。返回内容:基于URL的操作ID、内容预览、相关性评分
  • get_action_by_id
    - 获取完整操作详情。返回内容:操作内容、页面元素选择器(CSS/XPath)、元素类型、允许的方法(click、type、extract)、文档元数据

Parameters

参数

search_actions:
  • query
    (required): Search keyword (e.g., "airbnb search", "google login")
  • type
    :
    vector
    |
    fulltext
    |
    hybrid
    (default)
  • limit
    : Max results (default: 5)
  • sourceIds
    : Filter by source IDs (comma-separated)
  • minScore
    : Minimum relevance score (0-1)
get_action_by_id:
  • id
    (required): URL-based action ID (e.g.,
    example.com/page
    )
search_actions:
  • query
    (必填):搜索关键词(例如:"airbnb search"、"google login")
  • type
    :
    vector
    |
    fulltext
    |
    hybrid
    (默认值)
  • limit
    :最大结果数(默认值:5)
  • sourceIds
    :按源ID筛选(逗号分隔)
  • minScore
    :最低相关性评分(0-1)
get_action_by_id:
  • id
    (必填):基于URL的操作ID(例如:
    example.com/page

Example Response

示例响应

json
{
  "title": "Airbnb Search",
  "url": "www.airbnb.com/search",
  "elements": [
    {
      "name": "location_input",
      "selector": "input[data-testid='structured-search-input-field-query']",
      "type": "textbox",
      "methods": ["type", "fill"]
    }
  ]
}
json
{
  "title": "Airbnb Search",
  "url": "www.airbnb.com/search",
  "elements": [
    {
      "name": "location_input",
      "selector": "input[data-testid='structured-search-input-field-query']",
      "type": "textbox",
      "methods": ["type", "fill"]
    }
  ]
}