feat(mcp): complete action results and invocation examples

Document result shapes and practical calls for all built-in actions,
including prerequisites, streaming workflows and compatibility limits.

Preserve existing interfaces and execution behavior, and verify the
catalog against action validation and representative responses.
This commit is contained in:
DrSmoothl committed 2026-10-23 15:45:07 +08:00
1 parent 34a73084e0
commit 2d659b0ceb
27 files changed
+14140 -33

No files matched your search

+3 -1
View File
@@ -101,7 +101,9 @@ WebUI deployment targets use a reversible presentation overlay. Read [the host a
## Generated files and related changes
OneBot action definitions own validation and catalog metadata. After changing an action name, parameter, result description or execution mode:
OneBot action definitions own validation and catalog metadata. Each bundled action supplies a `returnsSchema` for successful OneBot `data` and at least one `examples` entry with valid parameters and any required identifier sources. Stream schemas describe individual successful frames, not MCP aggregated results. Keep undocumented upstream fields open rather than inventing a structure, and label unsupported or placeholder behavior explicitly.
After changing an action name, parameter, result description/schema, example or execution mode:
1. Update the owning definition in `packages/onebot/src/actions` and its tests.
2. Run `pnpm --filter @snowluma/mcp gen`.