Repository navigation
[Automated] Draft docs (kagent): feat: render MCP tool-result images in chat, and end ListTasks pages by… - #768
Merged
Conversation
…in chat, and end ListTasks pages by… Signed-off-by: GitHub Action <action@github.com>
Rachael-Graham
approved these changes
Nov 30, 2026
Contributor
Author
Docs preview
Both are uploaded Worker versions and serve no production traffic. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kagent-dev/kagent#3246 — feat: render MCP tool-result images in chat, and end ListTasks pages by size
Docs versions:
mainNo code-path rule covers 4 touched file(s). The planner could route these only by identifier search, so the candidate pages may miss what they changed, including in the other mode:
go/api/a2a/task_page.gogo/api/a2a/tool_activity.gogo/core/internal/service/session/interactions.gogo/core/internal/service/taskstore/service.goWhat changes for users: The kagent chat UI can show PNG, JPEG, GIF, and WebP images that successful MCP tools return, such as Grafana panel images. Large A2A
ListTasksresponses now end before the page exceeds 12 MiB and usenextPageTokenfor the remaining tasks.What the docs now say: The About tools page now says which MCP tool-result images render inline in chat. The A2A example now says that
ListTaskscan return fewer tasks thanpageSizewhen tasks are large, and that callers must follownextPageToken.How
kagent-3246was draftedPlan, and what changed it
ListTaskspaging limit on the A2A page.about-tools.mdanda2a-agents.mdin the upstream kagentmaintree.Why a documentation change is necessary
The PR body says chat now shows images that MCP tools return, such as Grafana
get_panel_image, and the diff adds image capture and inline rendering for successful MCP tool results. The tools page explains MCP bindings but did not tell readers what happens when a bound tool returns renderable images. The diff also changesListTasksto end pages by serialized task size; the A2A page describedpageSizeandnextPageTokenbut not that a page can contain fewer tasks than requested when tasks are large.How to verify this change
image/png, such as Grafanaget_panel_image; the tool card shows the returned image inline.ListTaskswithincludeArtifacts: trueandpageSize: 100against a Session that has multiple large tasks; the response contains fewer tasks thanpageSizewhen adding the next task would exceed the page-size limit.ListTaskswith the returnednextPageToken; the next response starts after the last task from the previous page.Proposed release note
Chat now shows PNG, JPEG, GIF, and WebP images that successful MCP tools return inline in the tool-result card. Large A2A
ListTasksresponses are paged before they exceed the response size limit, withnextPageTokenpointing to the remaining tasks.Files in this pull request
docs-site/content/kagent/main/examples/a2a-agents.mddocs-site/content/kagent/main/skills-and-mcp/about-tools.mdHow the pages were chosen (triage report)
Feature clusters
Kept apart on purpose. Merging wrongly produces a guide that documents two things and explains neither, so these are reported for a person to merge rather than grouped automatically:
Draft a documentation change
kagent-dev/kagent#3246 — feat: render MCP tool-result images in chat, and end ListTasks pages by size
kagent-dev/websitego/api/a2a/task_page.gogo/api/a2a/tool_activity.gogo/core/internal/service/session/interactions.gogo/core/internal/service/taskstore/service.goDraft branch:
pr-tracker-draft-kagent-3246