Skip to content

get_file_contents: Add ability to select line(s) ranges #350

Open
@kaovilai

Description

@kaovilai

Describe the feature or problem you’d like to solve

get_file_contents - Get contents of a file or directory

owner: Repository owner (string, required)
repo: Repository name (string, required)
path: File path (string, required)
ref: Git reference (string, optional)
begin: begin line# (number, optional)
end: end line# (number, optional)

requested addition in bold

Proposed solution

See above

Additional context

This may help reduce model context consumed by parsing large files if we only want to request a subset..

Activity

aryasoni98

aryasoni98 commented on Apr 26, 2025

@aryasoni98
Contributor

@kaovilai I came across this issue and would love to contribute could you please assign it to me?

kaovilai

kaovilai commented on Apr 27, 2025

@kaovilai
Author

I'm not a maintainer here so I cannot assign anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @kaovilai@aryasoni98

      Issue actions

        get_file_contents: Add ability to select line(s) ranges · Issue #350 · github/github-mcp-server