/ag-ui-dotnet:agui-dotnet-multimodalfrom ag-ui-dotnet
Attaches images, audio, PDFs to AG-UI agent messages via .NET SDK. Builds multimodal ChatMessage with inline bytes or URL references.
Ships in ag-ui-dotnet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Goal: include an image (or other binary content) in a turn so a multimodal model can describe or reason about it.
A multimodal message is an ordinary Microsoft.Extensions.AI ChatMessage whose Contents mixes a TextContent with one or more binary parts. AGUIChatClient carries those parts across the AG-UI wire; the server streams the model's reply as usual.
dotnet add package AGUI.Client
Microsoft.Extensions.AI supplies ChatMessage, TextContent, DataContent, and UriContent.
Use DataContent(bytes, mediaType) to embed the data directly in the message:
using AGUI.Client;
using Microsoft.Extensions.AI;
byte[] imageBytes = await File.ReadAllBytesAsync("photo.png");
var messages = new List<ChatMessage>
{
new(ChatRole.User,
[
new TextContent("Describe this image"),
new DataContent(imageBytes, "image/png"),
]),
};
await foreach (var update in client.GetStreamingResponseAsync(messages))
{
Console.Write(update.Text);
}
The media type must match the bytes (image/png, image/jpeg, audio/wav, application/pdf, …) so the model decodes them correctly.
When the asset already lives at a URL, use UriContent(uri, mediaType) instead — the bytes never pass through your process:
new ChatMessage(ChatRole.User,
[
new TextContent("What's in this picture?"),
new UriContent("https://example.com/cat.jpg", "image/jpeg"),
]);
Prefer UriContent to reference an asset already hosted at a URL; use DataContent for local bytes the model host can't reach by URL.
DataContent. Inline binary is base64-encoded into the request, inflating it ~33% and forcing the whole payload through memory on both ends. For anything sizable that is reachable by URL, send UriContent and let the model host fetch it.IChatClient at a vision-capable model/deployment.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
9 skills in this plugin
/agui-dotnet-client-toolsExpose client-side (frontend) tools to an AG-UI agent with the AG-UI .NET SDK — C# functions that run in the CLIENT app (read local state, GPS, UI, device APIs), where the client executes the call and returns the result so the run continues. USE FOR: declaring an AIFunction in the client and passing it via ChatOptions.Tools to AGUIChatClient; having the client execute a tool the model requested and feed the result back automatically; understanding why no UseFunctionInvocation is needed on the client (AGUIChatClient already invokes functions); what the server must do (UseFunctionInvocation + TerminateOnUnknownCalls) so it forwards an unknown/client tool instead of erroring. DO NOT USE FOR: tools that run on the server/backend (use agui-dotnet-server-tools); pausing for human approval/input before acting (interrupts / human-in-the-loop); plain chat (use agui-dotnet-streaming-chat); shared state, generative UI, multimodal, or protobuf.
/agui-dotnet-human-in-the-loopPause an AG-UI agent run for a human, then resume it, with the AG-UI .NET SDK — gate a sensitive tool behind explicit approval, or interrupt a run to collect free-form input from the user before continuing. USE FOR: requiring human approval before a tool executes (ApprovalRequiredAIFunction + ToolApprovalRequestContent/ToolApprovalResponseContent, resume by appending the request + CreateResponse(approved)); pausing a run to ask the user a question and resuming with their answer (InterruptRequestContent / InterruptResponseContent, RunAgentInput.Resume); how a paused run surfaces as RUN_FINISHED outcome=interrupt and how the client detects and answers it. DO NOT USE FOR: tools that run without approval on the server (use agui-dotnet-server-tools) or in the client (use agui-dotnet-client-tools); plain chat (use agui-dotnet-streaming-chat); shared state, generative UI, multimodal, or protobuf.
Other plugins' skills for the same job