<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg" -->

---
title: AI Agent Tool Manifests with TypeScript & JSON Schema
description: A vendor-agnostic JSON Schema specification called agent-skill-manifest.json is presented for declaring AI agent tools once and compiling them into...
canonical: https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI Agent Tool Manifests with TypeScript & JSON Schema | daily.dev
og:description: A vendor-agnostic JSON Schema specification called agent-skill-manifest.json is presented for declaring AI agent tools once and compiling them into...
og:url: https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg
og:image: https://api.daily.dev/og/posts/i3kYXHtzG.png
og:image:alt: AI Agent Tool Manifests with TypeScript & JSON Schema
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Agent Tool Manifests with TypeScript & JSON Schema

**[SitePoint](https://daily.dev/sources/sitepoint)** · 18 min read · 0 upvotes · 0 comments

## Summary

A vendor-agnostic JSON Schema specification called agent-skill-manifest.json is presented for declaring AI agent tools once and compiling them into provider-specific formats. The manifest covers toolId, versioning, inputSchema, outputSchema, permissions, and executionBoundary, and a TypeScript adapter system (using AJV for validation) compiles it into OpenAI's function-calling format and Anthropic Claude's flat tool format, as well as passing through unmodified for custom agent loops. The piece walks through schema design, TypeScript type definitions, runtime validation with ajv/dist/2020, pure-function compilers per provider, an end-to-end code_interpreter example, extensibility via x- prefixed fields, schema versioning, and stated limitations (no coverage of tool implementation, multi-tool orchestration, or provider-specific features like OpenAI's strict mode or Claude's cache_control).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.sitepoint.com/ai-agent-tool-manifests-building-unified-typescript-json-schema>

## Questions this post answers

### How do I convert one tool definition into both OpenAI function-calling format and Anthropic Claude's tool format without duplicating the schema?

Define the tool once as a vendor-neutral JSON Schema manifest containing toolId, inputSchema, and description, then use a compileManifest function with separate pure compiler functions for each target. The OpenAI compiler nests parameters under a function key and sanitizes toolId to match ^[a-zA-Z0-9_-]{1,64}$, while the Claude compiler places the schema flat under input_schema with no strict-mode equivalent.

_daily.dev surfaces patterns like this for developers wiring up multi-provider AI agent tool definitions._

### Does AJV validate JSON Schema draft 2020-12 by default?

No, AJV v8's default export only supports draft-07, so validating a schema declared with $schema: https://json-schema.org/draft/2020-12/schema requires importing the ajv/dist/2020 subpath instead, for example import Ajv2020 from "ajv/dist/2020". Using the default Ajv import against a 2020-12 schema will cause compilation or validation errors.

_developers debugging schema validation errors can track fixes like this via daily.dev._

### Do OpenAI and Anthropic apply default values declared in a tool's JSON Schema parameters?

No, default values in a tool's JSON Schema are documentation only and are not injected into tool call arguments by either OpenAI or Anthropic APIs. Missing optional parameters, such as a language field defaulting to python3.12 or timeout_seconds defaulting to 30, must be handled explicitly by the tool execution layer after receiving the model's arguments.

_anyone wiring up tool-calling defaults can keep track of provider quirks like this through daily.dev._

## Similar posts on daily.dev

- [AI Agent Tool Design 2026: Schemas, Descriptions, And Pitfalls](https://daily.dev/posts/ai-agent-tool-design-2026-schemas-descriptions-and-pitfalls-uspdt00cj) · Alex CloudStar · 0 upvotes · 0 comments
- [Agent-as-a-Tool: A New Era of AI Orchestration](https://daily.dev/posts/agent-as-a-tool-a-new-era-of-ai-orchestration-vxph42s1s) · DEV · 2 upvotes · 0 comments
- [Building AI Agents with TypeScript AI SDK](https://daily.dev/posts/building-ai-agents-with-typescript-ai-sdk-wzwygudhc) · Telerik · 1 upvotes · 0 comments
- [AI SDK 7 is now available](https://daily.dev/posts/ai-sdk-7-is-now-available-iz9c3resl) · Vercel · 32 upvotes · 3 comments
- [Fix AI Code Hallucinations: TypeScript Compiler \+ TDD](https://daily.dev/posts/fix-ai-code-hallucinations-typescript-compiler-tdd-ucvfxgpnp) · SitePoint · 1 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#ai-agents](https://daily.dev/tags/ai-agents), [#typescript](https://daily.dev/tags/typescript), [#openai](https://daily.dev/tags/openai)

[View this post on daily.dev](https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"AI Agent Tool Manifests with TypeScript \u0026 JSON Schema","url":"https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg"},"datePublished":"2026-09-16T18:20:40.026Z","dateModified":"2026-09-16T21:55:26.781Z","description":"A vendor-agnostic JSON Schema specification called agent-skill-manifest.json is presented for declaring AI agent tools once and compiling them into...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3e93c49a9252208676b564b028551a87?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3e93c49a9252208676b564b028551a87?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"SitePoint","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"SitePoint","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/sitepoint","url":"https://daily.dev/sources/sitepoint"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,ai-agents,typescript,openai","timeRequired":"PT18M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"SitePoint","item":"https://daily.dev/sources/sitepoint"},{"@type":"ListItem","position":3,"name":"AI Agent Tool Manifests with TypeScript \u0026 JSON Schema"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/ai-agent-tool-manifests-with-typescript-json-schema-i3kyxhtzg#faq","mainEntity":[{"@type":"Question","name":"How do I convert one tool definition into both OpenAI function-calling format and Anthropic Claude's tool format without duplicating the schema?","acceptedAnswer":{"@type":"Answer","text":"Define the tool once as a vendor-neutral JSON Schema manifest containing toolId, inputSchema, and description, then use a compileManifest function with separate pure compiler functions for each target. The OpenAI compiler nests parameters under a function key and sanitizes toolId to match ^[a-zA-Z0-9_-]{1,64}$, while the Claude compiler places the schema flat under input_schema with no strict-mode equivalent. daily.dev surfaces patterns like this for developers wiring up multi-provider AI agent tool definitions."}},{"@type":"Question","name":"Does AJV validate JSON Schema draft 2020-12 by default?","acceptedAnswer":{"@type":"Answer","text":"No, AJV v8's default export only supports draft-07, so validating a schema declared with $schema: https://json-schema.org/draft/2020-12/schema requires importing the ajv/dist/2020 subpath instead, for example import Ajv2020 from \"ajv/dist/2020\". Using the default Ajv import against a 2020-12 schema will cause compilation or validation errors. developers debugging schema validation errors can track fixes like this via daily.dev."}},{"@type":"Question","name":"Do OpenAI and Anthropic apply default values declared in a tool's JSON Schema parameters?","acceptedAnswer":{"@type":"Answer","text":"No, default values in a tool's JSON Schema are documentation only and are not injected into tool call arguments by either OpenAI or Anthropic APIs. Missing optional parameters, such as a language field defaulting to python3.12 or timeout_seconds defaulting to 30, must be handled explicitly by the tool execution layer after receiving the model's arguments. anyone wiring up tool-calling defaults can keep track of provider quirks like this through daily.dev."}}]}
```

