logs_search
Search Firebase emulator and function console logs by service, level, function, call, text, or time; return matching lines oldest first to diagnose issues.
Instructions
Search the suite's log (every emulator and every function's console output) by service, level, function, call, text and time; returns the newest matching lines, oldest first.
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": "logs_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Extra filter terms in the console's grammar, e.g. kind:rules.denied payload.orderId:o1 -level:debug | |
| to | No | Lines at or before, in the same forms | |
| from | No | Lines at or after: RFC 3339, YYYY-MM-DD, today, reload (since the last Functions reload) or relative like -15m | |
| text | No | Case-insensitive text the message or payload contains | |
| level | No | Only these levels (any of), e.g. ["warn","error"] | |
| limit | No | At most this many lines; default 50 | |
| before | No | The older cursor of a previous search, for the lines before it | |
| service | No | Only these services (any of) | |
| function | No | Only this function's lines: its name or <region>-<name> id | |
| execution | No | Only one function call's lines: the call id from functions_list_calls |