Docs

Built-in tools›Preview

Console logs

preview_console_logs
Group
Preview
Turned on by
Its own switch on the Tools page of Conversation settings.
Approval
Reviewed: writes and open-ended actions ask for approval unless the security level or an earlier “Always allow” covers them.
Profile key
tool.preview_console_logs.description

Reads the browser console of the conversation's preview page: console messages, uncaught errors and unhandled promise rejections.

log, info and debug messages appear only with level: "all". The entries live in the page, so a reload or navigation clears them. For the dev server's own output, see preview_logs.

When it asks you

Asks at Manual and Accept edits, because console lines can carry tokens from a signed-in page; Always allow is not offered. If you have been using the page yourself, you hand it back first in the pane; on a signed-in page, that takeover needs your approval at every security level. See Browser and preview.

Limits

The page keeps its last 200 entries, each cut at 8,000 characters.

Parameters

ParameterTypeDetails
level
Level
stringFilter by level: 'all' (default), 'error' (errors only), 'warn' (warnings + errors)
"all" "error" "warn"
lines
Line limit
numberMax lines to return (default: 50, max: 200)
serverId
Server ID
stringServer ID

Edit this page on GitHub