mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-06 20:33:36 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user