Skip to content

[Automated] Draft docs (kagent): feat: render MCP tool-result images in chat, and end ListTasks pages by… - #768

Merged
Rachael-Graham merged 3 commits into
mainfrom
pr-tracker-draft-kagent-3246
Nov 30, 2026
Merged

Rachael-Graham merged 3 commits into
mainfrom
pr-tracker-draft-kagent-3246

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

kagent-dev/kagent#3246 — feat: render MCP tool-result images in chat, and end ListTasks pages by size

Docs versions: main

No 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.go
  • go/api/a2a/tool_activity.go
  • go/core/internal/service/session/interactions.go
  • go/core/internal/service/taskstore/service.go

What 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 ListTasks responses now end before the page exceeds 12 MiB and use nextPageToken for 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 ListTasks can return fewer tasks than pageSize when tasks are large, and that callers must follow nextPageToken.

How kagent-3246 was drafted

Plan, and what changed it

  • Planned: Document the MCP image behavior on the tools page and the ListTasks paging limit on the A2A page.
  • Learned: The dossier diff and PR body show both user-visible behaviors; nothing changed the plan.
  • Did: Updated about-tools.md and a2a-agents.md in the upstream kagent main tree.

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 changes ListTasks to end pages by serialized task size; the A2A page described pageSize and nextPageToken but not that a page can contain fewer tasks than requested when tasks are large.

How to verify this change

  1. In the kagent UI, invoke an agent that is bound to an MCP tool that returns image/png, such as Grafana get_panel_image; the tool card shows the returned image inline.
  2. Call ListTasks with includeArtifacts: true and pageSize: 100 against a Session that has multiple large tasks; the response contains fewer tasks than pageSize when adding the next task would exceed the page-size limit.
  3. Repeat ListTasks with the returned nextPageToken; 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 ListTasks responses are paged before they exceed the response size limit, with nextPageToken pointing to the remaining tasks.

Files in this pull request

  • docs-site/content/kagent/main/examples/a2a-agents.md
  • docs-site/content/kagent/main/skills-and-mcp/about-tools.md
How 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

Draft branch: pr-tracker-draft-kagent-3246

actions-user and others added 3 commits November 29, 2026 10:21
…in chat, and end ListTasks pages by…

Signed-off-by: GitHub Action <action@github.com>
Signed-off-by: Rachael Graham <rachael.graham@solo.io>
@Rachael-Graham
Rachael-Graham merged commit 9fb15ef into main Nov 30, 2026
4 checks passed
@Rachael-Graham
Rachael-Graham deleted the pr-tracker-draft-kagent-3246 branch November 30, 2026 19:15
@github-actions

Copy link
Copy Markdown
Contributor Author

Docs preview

Link Points at
Branch preview The newest push to this branch. Updates in place.
Commit preview ef46d35 only. Frozen.

Both are uploaded Worker versions and serve no production traffic.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants