You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -533,7 +531,7 @@ func ListWorkflowJobs(getClient GetClientFn, t translations.TranslationHelperFun
533
531
}
534
532
535
533
// GetJobLogs creates a tool to download logs for a specific workflow job or efficiently get all failed job logs for a workflow run
536
-
funcGetJobLogs(getClientGetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
534
+
funcGetJobLogs(getClientGetClientFn, t translations.TranslationHelperFunc, contextWindowSizeint) (tool mcp.Tool, handler server.ToolHandlerFunc) {
537
535
returnmcp.NewTool("get_job_logs",
538
536
mcp.WithDescription(t("TOOL_GET_JOB_LOGS_DESCRIPTION", "Download logs for a specific workflow job or efficiently get all failed job logs for a workflow run")),
539
537
mcp.WithToolAnnotation(mcp.ToolAnnotation{
@@ -616,18 +614,18 @@ func GetJobLogs(getClient GetClientFn, t translations.TranslationHelperFunc) (to
616
614
617
615
iffailedOnly&&runID>0 {
618
616
// Handle failed-only mode: get logs for all failed jobs in the workflow run
content, originalLength, httpResp, err:=downloadLogContent(ctx, url.String(), tailLines) //nolint:bodyclose // Response body is closed in downloadLogContent, but we need to return httpResp
725
+
content, originalLength, httpResp, err:=downloadLogContent(ctx, url.String(), tailLines, contextWindowSize) //nolint:bodyclose // Response body is closed in downloadLogContent, but we need to return httpResp
728
726
iferr!=nil {
729
727
// To keep the return value consistent wrap the response as a GitHub Response
0 commit comments