TokenPad
Format

Agent Config YAML to JSON

Turn a YAML agent definition into the JSON an API expects.

Your input

102 characters6 lines0 tokensor drop a file

Agent Config to JSONExact
0Token change
Token change0no change
Input tokens0what you pasted
Output tokens0what you would send
Token cost of this result
Output tokens0
As input$0.00
× 100K requests$0.00

Everything on this page runs in your browser. Nothing you paste is transmitted, because there is no server here to transmit it to.

Result
 

Config on disk, JSON on the wire

Your agent definition lives in YAML because people edit it. The API takes JSON because machines read it. This is the boundary between those two, and it is a place where errors are easy to introduce by hand.

It is also where you find out what your configuration costs. The token count on the converted JSON is what gets sent on every single request, before the user has typed anything.

What this parser handles

The subset that agent and skill configuration actually uses: plain keys, nested maps, simple lists, and scalar values with type inference. That covers essentially every config file of this kind.

It deliberately does not handle anchors, aliases, multi-document files, flow style or multi-line block scalars. A full YAML implementation is a large dependency, and this site keeps its dependencies minimal on purpose.

Reading the token count

Tool definitions are the surprise here. Each tool contributes its name, its description and its full parameter schema to every request, and a verbose description can cost more than the user’s actual question.

If the converted JSON runs past a few hundred tokens, the agent builder breaks that down by component and multiplies it by your iteration limit, which is where the real number lives.

Frequently asked questions

My YAML fails to convert. Why?
Most likely a feature outside the supported subset — an anchor, a multi-line block scalar, or flow style. Simplify the structure, or convert with a full YAML library in your own toolchain.
Why does my number come through as a string?
Because it was quoted in the YAML, which is an explicit instruction that it is text. Remove the quotes if you want a number.

More format tools