Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enhancement: Add log truncation options toget_job_logs tool for improved LLM context efficiency #608

Closed
Assignees
JoannaaKL
@kehao95

Description

@kehao95

Summary

Theget_job_logs tool currently returns complete job logs, which can be extremely long and inefficient when used as MCP tool context for LLMs. Adding log truncation options liketail_lines parameters would help focus on relevant failure information.

Problem

When debugging CI/CD failures using theget_job_logs tool in LLM conversations:

  1. Context Overflow: Complete job logs can easily exceed LLM context limits
  2. Information Overload: Most debugging scenarios only need the final portion where failures occur
  3. Poor User Experience: Long logs make it harder to identify specific failure points

Proposed Solution

Add optional truncation parameters to theget_job_logs tool:

  • tail_lines: Return last N lines (most useful for failure debugging)

Example usage:

{"name":"get_job_logs","arguments": {"owner":"example","repo":"repo","job_id":12345,"tail_lines":100,"return_content":true  }}

This enhancement aligns with existing concerns about LLM context efficiency, similar to Issue#142 regarding excessive context size.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp