Server logs
preview_logs- Group
- Preview
- Turned on by
- Its own switch on the Tools page of Conversation settings.
- Approval
- Not reviewed: runs without asking, within the limits on this page.
- Profile key
tool.preview_logs.description
Reads what a dev server printed to stdout and stderr, so the model can check build errors and server behaviour.
Without a serverId it reads the first server that is running or starting. The page's browser console is a separate tool, preview_console_logs.
Limits
- Mewrk keeps the last 1,000 chunks of output per server, in the pieces they arrived in, and
linescounts these chunks rather than text lines. - The output is discarded when the server stops. If a server fails at start, its output is in the preview_start result.
Good to know
level: "error"keeps only stderr output that contains error, exception, failed or fatal. Errors a server prints to stdout show up only throughsearch, which is case-sensitive.
Parameters
| Parameter | Type | Details |
|---|---|---|
levelLevel | string | 'error': stderr lines with error, exception, failed or fatal."all" "error" |
linesLine limit | number | Default 50. |
searchText filter | string | Case-sensitive. |
serverIdServer ID | string | launch.json name, numbered (dev-2) if repeated. |