get_server_logs
Retrieve specified server logs by type and line count to diagnose server, web, or database issues.
Instructions
Get server logs
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": {
"serverId": "<serverId>",
"type": "<type>"
},
"name": "get_server_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Log type (nginx_error, nginx_access, mysql_error, etc.) | |
| lines | No | Number of lines to retrieve | |
| serverId | Yes | The ID of the server |