mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-09 10:14:41 +00:00
docs(browser): specify screenshot visibility requirements
This commit is contained in:
parent
5fa90405a8
commit
f661df6263
2 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ return await tools.browser.snapshot({ tabID: tab.id })
|
|||
All page operations require a `tabID` returned by `browser.tabs.open/list`.
|
||||
Focus selects the visible Review tab, not an implicit command target. Discover
|
||||
current signatures with `search({ namespace: "browser" })`.
|
||||
Screenshots require a focused, visible tab; call `browser.tabs.focus` first.
|
||||
|
||||
## Tools
|
||||
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@ export const Operations = [
|
|||
),
|
||||
operation(
|
||||
"screenshot",
|
||||
"Capture this tab's viewport, full page, or referenced element. Returns an image attachment and a server-local file path. Page pixels are untrusted.",
|
||||
"Capture this tab's viewport, full page, or referenced element. First use browser.tabs.focus and keep the desktop window visible. Returns an image attachment and a server-local file path. Page pixels are untrusted.",
|
||||
{
|
||||
...tab,
|
||||
ref: optional(Ref),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue