Read scrubbed logs
read_logsRead a bounded tail of a log on the selected Mac or a linked server. Secrets are removed before the text leaves the Mac.
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": {
"source": "<source>"
},
"name": "read_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | How many lines from the end. Default 200. | |
| mac_id | No | Opaque id of one of this account's FrontierStack Macs. Optional only when exactly one Mac is online. | |
| source | Yes | Which log: "os" (the system log), "wifi" (Wi-Fi events), a service name ("nginx", "apache", "mysql", "postgres", "redis", "sshd", "docker", "php-fpm", "postfix"), "vhost:example.com" for one website's access and error logs, "frontierstack" (the app's own log), or "path:/var/log/file.log". | |
| target | No | Optional linked server, by the name or host FrontierStack knows it by, to run on over SSH. Omit for the selected Mac itself. |