MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / execute

Method execute

src/tools/docker/docker-tools.ts:49–54  ·  view source on GitHub ↗
(a: z.infer<typeof LogsArgs>)

Source from the content-addressed store, hash-verified

47 description = 'Read a container\'s logs (stdout+stderr), tail-limited. Read-only. Use after docker_ps to debug a running/crashed container.';
48 isReadOnly = true; isDestructive = false; argsSchema = LogsArgs;
49 async execute(a: z.infer<typeof LogsArgs>): Promise<ToolResult> {
50 const args = ['logs', '--tail', String(a.tail ?? 200)];
51 if (a.since) args.push('--since', a.since);
52 args.push(a.container);
53 return docker(args, 30_000);
54 }
55}
56
57// ---- docker_inspect ----

Callers

nothing calls this directly

Calls 2

dockerFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected