read_log_head
Read the first specified lines of a local log file to inspect startup parameters and initial startup logs during troubleshooting.
Instructions
读取日志文件开头指定行数(适合查看启动参数与启动阶段日志)。
Args: file_path: 日志文件绝对路径。 lines: 要读取的行数,默认 100,最大 5000。
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": {
"file_path": "<file_path>"
},
"name": "read_log_head"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |