dsh-cc/dsh-cc--packages-core-tool-structured-output ↗★ 1

@dsh-cc/tool-structured-output

StructuredOutput tool that validates model input against a caller-supplied JSON schema and returns it verbatim, aligned with Claude Code's SyntheticOutputTool 适合需模型输出结构化 JSON 的开发者;需提供 schema。

Package
@dsh-cc/tool-structured-output
Compatibility
Unverified
Harness peer range
>=0.1.5-rc.1
Cordis peer range
>=0.1.5-rc.1
Version
0.7.1
License
Apache-2.0
Last updated
Sep 16, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Usage

const tool = createStructuredOutputTool({
  type: 'object',
  additionalProperties: false,
  properties: {
    title: { type: 'string' },
    count: { type: 'integer' },
  },
  required: ['title', 'count'],
})
ctx.tools.register(tool)