rea-agents
Preparing search index...
browser/CdpScreenshot
captureCdpScreenshot
Function captureCdpScreenshot
captureCdpScreenshot
(
context
:
ScreenshotContext
,
)
:
Promise
<
{
artifact
:
{
bytes
:
number
;
data_base64
:
string
;
media_type
:
"image/png"
;
sha256
:
string
;
uri
:
string
;
}
;
browser
:
{
js_version
:
string
;
product
:
string
;
protocol_version
:
string
;
revision
:
string
;
user_agent
:
string
;
}
;
captured_at
:
string
;
completeness
:
{
attach_limited_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
conditions
:
(
|
"truncated"
|
"complete_within_window"
|
"policy_filtered"
|
"attach_limited"
)
[]
;
dropped_events
:
{
console_events
:
number
;
network_requests
:
number
;
scripts
:
number
;
timeline_events
:
number
;
total
:
number
;
webmcp_tools
:
number
;
websocket_connections
:
number
;
websocket_frames
:
number
;
}
;
excluded
:
{
count
:
number
|
null
;
reason
:
|
"provider_unavailable"
|
"disallowed_origin"
|
"unsupported_url"
|
"unattributed_origin"
|
"not_approved"
|
"out_of_target_scope"
|
"invalid_protocol_value"
;
section
:
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
;
}
[]
;
policy_filtered_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
status
:
|
"truncated"
|
"complete_within_window"
|
"policy_filtered"
|
"attach_limited"
;
truncated_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
unavailable_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
}
;
limitations
:
string
[]
;
schema_version
:
1
;
target
:
{
origin
:
string
;
target_id
:
string
;
url
:
string
}
;
viewport
:
{
height
:
number
;
width
:
number
}
;
}
,
>
Capture the current viewport without navigation, evaluation, or page mutation.
Parameters
context
:
ScreenshotContext
Returns
Promise
<
{
artifact
:
{
bytes
:
number
;
data_base64
:
string
;
media_type
:
"image/png"
;
sha256
:
string
;
uri
:
string
;
}
;
browser
:
{
js_version
:
string
;
product
:
string
;
protocol_version
:
string
;
revision
:
string
;
user_agent
:
string
;
}
;
captured_at
:
string
;
completeness
:
{
attach_limited_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
conditions
:
(
|
"truncated"
|
"complete_within_window"
|
"policy_filtered"
|
"attach_limited"
)
[]
;
dropped_events
:
{
console_events
:
number
;
network_requests
:
number
;
scripts
:
number
;
timeline_events
:
number
;
total
:
number
;
webmcp_tools
:
number
;
websocket_connections
:
number
;
websocket_frames
:
number
;
}
;
excluded
:
{
count
:
number
|
null
;
reason
:
|
"provider_unavailable"
|
"disallowed_origin"
|
"unsupported_url"
|
"unattributed_origin"
|
"not_approved"
|
"out_of_target_scope"
|
"invalid_protocol_value"
;
section
:
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
;
}
[]
;
policy_filtered_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
status
:
|
"truncated"
|
"complete_within_window"
|
"policy_filtered"
|
"attach_limited"
;
truncated_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
unavailable_sections
:
(
|
"frames"
|
"websocket_connections"
|
"metadata"
|
"resources"
|
"storage"
|
"dom"
|
"accessibility"
|
"scripts"
|
"script_sources"
|
"network_requests"
|
"network_initiators"
|
"console_events"
|
"console_text"
|
"websocket_frames"
|
"websocket_shapes"
|
"json_body_shapes"
|
"workers"
|
"storage_keys"
|
"webmcp_tools"
|
"screenshot"
|
"source_maps"
|
"timeline"
)
[]
;
}
;
limitations
:
string
[]
;
schema_version
:
1
;
target
:
{
origin
:
string
;
target_id
:
string
;
url
:
string
}
;
viewport
:
{
height
:
number
;
width
:
number
}
;
}
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
rea-agents
Loading...
Capture the current viewport without navigation, evaluation, or page mutation.