dsh-gemini-tool-schema: Normalizes tool schemas before requests to avoid Gemini functionDeclarations 400 errors

dsh-gemini-tool-schema is a DSH TypeScript plugin maintained by ChenXu233 that normalizes JSON Schemas from sources such as MCP and built-in tools into the strict OpenAPI 3.0 subset accepted by Gemini function declarations before model requests, preventing whole-package HTTP 400 errors. The article explains typical error scenarios, the rationale for handling this during the Harness assembly phase, installation and mounting methods (local build or npm package), configuration options such as mode/apis, and dryRun audit usage. It also cautions that the plugin runs with DSH process privileges and advises reviewing the source code.

Read More