feat(plugin): add tool result content API

This commit is contained in:
Kit Langton 2026-06-30 23:20:18 -04:00
commit 3e583a3f5a
25 changed files with 316 additions and 197 deletions

View file

@ -83,7 +83,7 @@ describe("WebFetchTool registration", () => {
expect(yield* settleTool(registry, call({ url, format: "text", timeout: 4 }))).toEqual({
result: { type: "text", value: "hello" },
output: {
structured: { url, contentType: "text/plain", format: "text", output: "hello" },
structured: { url, contentType: "text/plain", format: "text" },
content: [{ type: "text", text: "hello" }],
},
})