agent-client: claude: json-schema: type: object properties: summary: type: string description: "A brief summary of what was done" files_changed: type: array items: type: string description: "List of files that were created or modified" success: type: boolean required: - summary - success
AgentClient agentClient = agentClientBuilder.build();AgentClientResponse response = agentClient.goal("Analyze the project structure") .workingDirectory(projectDir) .run();// Parse the structured responseString result = response.getResult();JsonNode json = objectMapper.readTree(result);String summary = json.get("summary").asText();
Provider support varies. JSON schema structured output is currently supported by the Claude provider. Codex and Gemini may return free-form text even when a schema is configured. Check the provider-specific reference pages for current support.