arcane_logs
Collect recent Docker container or Compose project logs, filter by time and regex, and view redacted output read-only to troubleshoot issues without exposing secrets.
Instructions
Collect recent logs from a container, or from every container of a compose project. Read-only.
LOGS ARE SENSITIVE. Redaction is best-effort: it catches common token, key, password and URL-credential
shapes, but cannot recognise every secret or personal data in free text. Request the smallest slice you
need (a grep, a short since, a small tail), do not repeat log contents beyond what the user needs,
and never copy anything credential-like you notice into other tools or replies.
Arcane can only download a container's entire log, so the server filters it for you: it keeps the lines
matching since and grep, then returns the last tail of them (default 100, max 2000), oldest first,
each prefixed with its timestamp. ANSI colours are stripped and secret-looking values are hidden as
[REDACTED]. If the output is too large the oldest lines are dropped (see truncated); narrow with
since/grep rather than raising tail.
container: name (exact, else unique substring) or id. Pass this or
project, not both.project: compose project name; returns one section per container (at most 12).
since: relative age ("30m", "2h", "1d") or an ISO-8601 timestamp.
grep: regular expression, case-insensitive unless case_sensitive=true (e.g. "error|exception|panic").
env_id: environment id or name; see arcane_environments.
Result: {ok, env_id, logs: [{container, id, matched, returned, lines}]}. matched counts every line that
passed the filters, so matched > returned means older matches were cut.
Examples:
{"container": "Immich_server", "tail": 200}
{"container": "SearXNG", "since": "1h", "grep": "error|warn"}
{"project": "immich", "since": "30m", "env_id": "homelab"}
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": "arcane_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | ||
| tail | No | ||
| since | No | ||
| env_id | No | ||
| project | No | ||
| container | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||