Skip to main content
Use this when an AI agent spends many tokens on Yukta runs. A log can be megabytes; what the agent needs is usually a failing test name and a 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:line and its line in the node’s output;
  • next: the reads that show more. NODE_OUTPUT means get_node_output with that nodeId and offset; SEARCH means search_logs with that node and level.
When no extractor knows the output, the digest shows the node’s first error lines and suggests a search.

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:
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 with context lines from the same node. A cut answer has nextCursor; pass it as cursor for 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).