refactor(plugin-sdk): consolidate tool result helpers (#99740)

* refactor(plugin-sdk): consolidate tool result helpers

* docs(plugin-sdk): tighten tool result guidance

* refactor(feishu): use tool results directly
This commit is contained in:
Dallin Romney
2026-07-04 16:50:44 -07:00
committed by GitHub
parent c2fc7aa28a
commit bfffa950d7
24 changed files with 105 additions and 152 deletions

View File

@@ -84,6 +84,8 @@ export default defineToolPlugin({
schema and the generated manifest still includes `configSchema`.
- `execute` returns a plain string or JSON-serializable value. The helper wraps
it as a text tool result with `details`.
- For custom tool results, `openclaw/plugin-sdk/tool-results` exports
`textResult` and `jsonResult`.
- Tool names are static. `openclaw plugins build` derives `contracts.tools`
from the declared tools, so authors do not duplicate names by hand.
- Runtime loading stays strict. Installed plugins still need