mirror of
https://github.com/actionbook/actionbook.git
synced 2026-09-19 03:28:06 +08:00
7061f9f637
- Optimize marketplace display metadata for CUE-569 - Use X-API-Key header instead of Authorization Bearer - Handle 403 for invalid API key - Migrate browser_create_session to provider credentials - Remove all zh_Hans entries from YAML files - Remove deprecated utils/api_key.py
75 lines
2.6 KiB
YAML
75 lines
2.6 KiB
YAML
identity:
|
|
name: search_actions
|
|
author: actionbook
|
|
label:
|
|
en_US: Search Actions
|
|
description:
|
|
human:
|
|
en_US: >
|
|
Search for website action manuals by keyword.
|
|
Returns verified selectors and operation methods for browser automation.
|
|
llm: >
|
|
Search the Actionbook database for verified website action manuals.
|
|
Use this tool FIRST when a user needs to automate browser interactions
|
|
(clicking buttons, filling forms, navigating pages).
|
|
|
|
HOW TO USE:
|
|
1. Call this tool with a descriptive keyword like "github login",
|
|
"google search box", or "twitter post button".
|
|
2. The results contain area IDs (format: "site.com:path:area_name").
|
|
3. Pick the most relevant area ID from the results.
|
|
4. Then call the "get_action_by_area_id" tool with that area ID
|
|
to get the full CSS/XPath selectors and interaction instructions.
|
|
|
|
TIPS:
|
|
- Search by task description, not element name
|
|
(e.g., "arxiv search papers" instead of "search button").
|
|
- Use the domain parameter to filter results to a specific website.
|
|
- Default limit is 10 results; increase if needed (max 50).
|
|
|
|
FALLBACK: If this tool returns no useful results or the returned selectors
|
|
don't work, use browser_operator with action=snapshot to capture the live
|
|
page's accessibility tree and derive selectors from it.
|
|
parameters:
|
|
- name: query
|
|
type: string
|
|
required: true
|
|
label:
|
|
en_US: Search Query
|
|
human_description:
|
|
en_US: >
|
|
Keyword or context describing the website action you need.
|
|
Examples: "login form", "submit button", "search bar"
|
|
llm_description: >
|
|
The search keyword describing what website element or action you need.
|
|
Be specific about the website and the element.
|
|
Examples: "github login form", "google search button",
|
|
"arxiv advanced search", "twitter compose tweet".
|
|
form: llm
|
|
- name: domain
|
|
type: string
|
|
required: false
|
|
label:
|
|
en_US: Domain Filter
|
|
human_description:
|
|
en_US: Filter results by website domain (e.g., "github.com")
|
|
llm_description: >
|
|
Optional website domain to narrow search results.
|
|
Example: "github.com", "arxiv.org", "twitter.com".
|
|
form: llm
|
|
- name: limit
|
|
type: number
|
|
required: false
|
|
default: 10
|
|
label:
|
|
en_US: Result Limit
|
|
human_description:
|
|
en_US: Maximum number of results to return (1-50, default 10)
|
|
llm_description: >
|
|
Maximum number of results to return. Valid range: 1 to 50.
|
|
Default is 10. Increase for broader searches.
|
|
form: llm
|
|
extra:
|
|
python:
|
|
source: tools/search_actions.py
|