You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0365909
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mcp): default preview_snapshot to text-only output
Embeds the PNG only on explicit includeImage=true. Inline images persist
in provider session history and some providers reject them outright,
bricking the session on every later request. save=true already returns
a screenshotPath file reference with text-only output.
Fixes#11295.
"Inspect a page before interacting. Pass tabId to inspect a specific tab; omit it to use this agent session's current tab. Returns page state, semantic elements, diagnostics, action history, and a PNG screenshot. The text is capped near 20 KB and lists what it omitted; use preview_evaluate to read more. Set includeImage=false for text-only output with the same page metadata. Set save=true to also write the PNG to disk and get screenshotPath back; with includeImage=false, save=true returns only the url and screenshotPath. Embed that path in your reply as  so the user sees it. This is the only way to show the user a screenshot; the image in the tool result is not saved anywhere.",
122
+
"Inspect a page before interacting. Pass tabId to inspect a specific tab; omit it to use this agent session's current tab. Returns page state, semantic elements, diagnostics, action history, and screenshot metadata as text. The text is capped near 20 KB and lists what it omitted; use preview_evaluate to read more. Set includeImage=true only when the model needs vision: the PNG is embedded in the tool result and persists in session history, which some providers reject. Set save=true to also write the PNG to disk and get screenshotPath back; with an explicit includeImage=false, save=true returns only the url and screenshotPath. Embed that path in your reply as  so the user sees it. This is the only way to show the user a screenshot; the image in the tool result is not saved anywhere.",
123
123
parameters: Schema.Struct({
124
124
...PreviewAutomationTabTargetInput.fields,
125
125
includeImage: Schema.optional(
126
126
Schema.Boolean.annotate({
127
127
description:
128
-
"Include the PNG image in the tool response. Defaults to true. Set false for text-only output.",
128
+
"Include the PNG image in the tool response. Defaults to false. Set true only when the model needs vision; inline images persist in session history and some providers reject them.",
0 commit comments