The prompt
{state_description}
You have also identified the following interactive components:
{visible_targets}{other_targets_str}{focused_hint}
You are to respond to my next request by selecting an appropriate tool from the following set, or by answering the question directly if possible:
{tool_names}
When deciding between tools, consider if the request can be best addressed by:
- the contents of the CURRENT VIEWPORT (in which case actions like clicking links, clicking buttons, inputting text, or hovering over an element, might be more appropriate)
- contents found elsewhere on the CURRENT WEBPAGE [{title}]({url}), in which case actions like scrolling, summarization, or full-page Q&A might be most appropriate
- on ANOTHER WEBSITE entirely (in which case actions like performing a new web search might be the best option)
My request follows: What it is
Gives a web agent the page state, the visible interactive elements and a tool list, and tells it to decide whether the request is best handled in the current viewport, elsewhere on the page, or on another site. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the AutoGen repository (MIT licence for code, Copyright (c) Microsoft Corporation (file LICENSE-CODE; the repository LICENSE file is CC BY 4.0 and covers documentation)). Licence: https://github.com/microsoft/autogen/blob/main/LICENSE-CODE. Original author: Microsoft (microsoft/autogen). Changes by FoxaMind: none; the text is copied from the source file.
Who it's for
- Browser-agent developers
يعطي وكيل الويب حالة الصفحة والعناصر التفاعلية الظاهرة وقائمة الأدوات، ويطلب منه تحديد ما إذا كان الطلب يُنجز في النافذة الحالية أو في مكان آخر من الصفحة أو في موقع آخر.
Tips
- It needs fields such as {state_description}, {visible_targets}, {tool_names}, {title} and {url} filled by code; the text here is the template.
- This is the text-only version; the source also has a multimodal version that adds a screenshot with labelled boxes.
- The three-way choice (viewport, page, other site) maps each situation to a family of tools.