list_logs
SSH into a server and list all log files under a specified app directory, including size and last-modified time, to identify relevant logs before deep analysis.
Instructions
SSH to a server and enumerate every file under <deployment_directory>//logs/ (Liberty's own messages.log/console.log/trace.log/ffdc/*, plus any app-written logs in subdirectories), with size, last-modified time, and a rough category for each. Call this first, then pass the relevant paths as log_files to analyze_logs - avoids blindly grepping every file (trace.log especially can be huge).
Args:
server_ip: Hostname or IP address of the server to connect to over SSH.
os_user: SSH username to authenticate as.
ssh_key: Path to the private key file (on this machine) used for authentication.
deployment_directory: Base deployment directory containing the application folder.
application: Name of the application subfolder whose logs/ directory to list.
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": {
"server_ip": "<server_ip>",
"os_user": "<os_user>",
"ssh_key": "<ssh_key>",
"deployment_directory": "<deployment_directory>",
"application": "<application>"
},
"name": "list_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os_user | Yes | ||
| ssh_key | Yes | ||
| server_ip | Yes | ||
| application | Yes | ||
| deployment_directory | Yes |