{"version":"2.1.259","anchor":"generated-dts-for-built-in-tool-inputs","canonical_anchor":"generated-dts-for-built-in-tool-inputs","heading":"plugin-types command now also emits claude-code.d.ts for built-in tool inputs","tier":"use","area":"Plugin SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259\/e\/generated-dts-for-built-in-tool-inputs","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259","markdown":"### plugin-types command now also emits `claude-code.d.ts` for built-in tool inputs\n\nA generated claude-code.d.ts now types built-in tool inputs, so TypeScript can narrow on checks like tool === Bash.\n\nA new generator (`BuiltinToolInputs`) writes a `claude-code.d.ts` declaration file merging built-in tool input schemas into `ToolCallInput`, similar to the existing MCP tool-input declaration file. This lets TypeScript users narrow `e.tool === \"Bash\"` etc. to typed arguments for built-in tools, not just MCP tools. The built-in `plugin-types` local command now writes both `claude-code.d.ts` and `claude-code-mcp.d.ts`, whereas previously it only wrote the MCP tool inputs file.\n\n- Area: Plugin SDK\n- Names: `claude-code.d.ts`, `ToolCallInput`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5"}