Skip to content

MCP: windowed get_message body reading#421

Draft
endolith wants to merge 1 commit into
kenn-io:mainfrom
endolith:split/mcp1-get-message-paging
Draft

MCP: windowed get_message body reading#421
endolith wants to merge 1 commit into
kenn-io:mainfrom
endolith:split/mcp1-get-message-paging

Conversation

@endolith

Copy link
Copy Markdown
Contributor

Return body_text as a paginated slice instead of the full message body. Adds offset, center_at, max_chars (default 2000, max 4000), body_length, body_returned, and has_more so agents can page through long messages or jump to a match via center_at (byte offset from search_in_message, which doesn't exist yet, see endolith@d819d71).

Values above maxBodyChars clamp to 4000; zero or negative max_chars use the default.

Followup to #388

Return body_text as a paginated slice instead of the full message body.
Adds offset, center_at, max_chars (default 2000, max 4000), body_length,
body_returned, and has_more so agents can page through long messages or
jump to a match via center_at (byte offset from search_in_message).

Values above maxBodyChars clamp to 4000; zero or negative max_chars use
the default.

Co-authored-by: endolith <endolith@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants