file:line. Every read below is bounded by default and says how to get the next part.
The order: digest, search, then one node
get_execution_logs stays for following a running run; without tailLines it returns only the last 100 lines (16 KB).
The MCP server sends this order to every client at connect time (server instructions), and the debug-workflow prompt follows it.
1. The failure digest
The digest lists:- the run’s status, and whether it has ended;
- the nodes that failed or timed out, also in failed sub-runs of the same session, with the error the engine recorded;
- the failures recognised in their output: failed tests (Gradle/JUnit, Go, Vitest, Jest), compile errors (javac, Kotlin, tsc, Go), lint findings (Checkstyle, PMD, ESLint) and failed tasks, each with its
file:lineand its line in the node’s output; next: the reads that show more.NODE_OUTPUTmeansget_node_outputwith thatnodeIdandoffset;SEARCHmeanssearch_logswith that node and level.
Exact test names from reports
PROCESS_EXECUTOR with reports (JUnit XML, Checkstyle XML or SARIF) also writes every failure it reads to the node’s log as one TestFailure: or LintFailure: line, which the digest reads before anything else:
2 and 3. The search
search_logs is a grep over a run’s logs, and over its sub-runs with includeChildren. Start cheap:
mode=COUNT(default): lines, errors, warnings and matches per node, no lines;mode=NODES: only the nodes that matched;mode=LINES: the matching lines withcontextlines from the same node. A cut answer hasnextCursor; pass it ascursorfor the next page.
hint always names the cheapest next search, for example Read the lines with mode=LINES and nodes=build, level=ERROR.
Measuring it
yukta.mcp.response.bytes{tool} records the size of every MCP answer per tool, so you can see which reads fill an agent’s context (/actuator/metrics/yukta.mcp.response.bytes?tag=tool:get_execution_logs).
Related
- MCP tools: every tool with its arguments and role.
- CLI:
digestandlogs search. - Observe runs.