Read logs
get_logsAn environment's logs (or a build's: build_id), most recent first, filterable by a text.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Lines returned: 100 by default, 200 with build_id; 1,000 at most. | |
| query | No | A LogsQL filter (VictoriaLogs' query language: https://docs.victoriametrics.com/victorialogs/logsql/), for example "timeout"; "error": the error lines. | |
| trial | No | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. | |
| project | No | The project. | |
| build_id | No | To read a build's log rather than the application's. | |
| environment | No | Production or a preview. | production |