Skip to content

docs: auto-update for merged PRs (2026-10-17) - #4623

Merged
aheritier merged 1 commit into
mainfrom
docs/auto-update
Oct 17, 2026
Merged

aheritier merged 1 commit into
mainfrom
docs/auto-update

Conversation

@aheritier

Copy link
Copy Markdown
Collaborator

Documentation changes

  • docs/tools/mcp/index.md (Embedded Resources): document how tool-result images and documents are sent to models over the OpenAI Chat Completions API. Images are sent as text (data URI/URL) inside the tool message, while PDFs and other documents go in a follow-up user message.

Reviewed, no changes needed

Docs for #4611, #4614, #4599, #4603, #4606 and #4618 already shipped with their source PRs.

Source PRs

@aheritier
aheritier requested a review from a team as a code owner October 17, 2026 04:00
@aheritier aheritier added the kind/docs Documentation-only changes label Oct 17, 2026
Copilot AI balanced review requested due to automatic review settings October 17, 2026 04:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The added guidance misstates the default API selection, which depends on the model.

1 open issue
What changed in this PR

Documents how MCP tool results are represented when using OpenAI Chat Completions.

Changes:

  • Explains image serialization as text in tool messages.
  • Describes document attachments in follow-up user messages.
File Description
docs/​tools/​mcp/​index.md Adds Chat Completions guidance for embedded resources.

Review effort: Balanced

Comment thread docs/tools/mcp/index.md

- **Anthropic** — images become `image` blocks in the `tool_result`; PDFs and other documents become `document` blocks.
- **OpenAI** — images are forwarded as `input_image` data URIs; PDFs as `input_file` data URIs in the tool result content.
- **OpenAI Chat Completions** (`api_type: openai_chatcompletions`, the default, and OpenAI-compatible providers) — tool messages only accept text, so images (including image documents) are sent as text in the tool message as their data URI or URL. PDFs and other documents are attached in a follow-up user message labeled "Attached content from tool result:".
@aheritier aheritier added the area/docs Documentation changes label Oct 17, 2026
@aheritier
aheritier added this pull request to the merge queue Oct 17, 2026
Merged via the queue into main with commit 9ebbdc3 Oct 17, 2026
23 checks passed
@aheritier
aheritier deleted the docs/auto-update branch October 17, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation changes kind/docs Documentation-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants