Search console logs
deployments_searchLogsFind lines in the console log that deployments.logs does not show: it searches the last 2000 lines (up to 5000) for a word or a regular expression, case-insensitive, and returns each hit with a few lines around it. Use it when the tail looks fine but something went wrong earlier, or to find the first occurrence of an error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"pattern": "<pattern>"
},
"name": "deployments_searchLogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| lines | No | How far back to look, in lines. Default 2000. | |
| context | No | Lines to return around each hit. Default 2. | |
| pattern | Yes | A word, or a regular expression. Case-insensitive. |