serialize_data
Convert validated Pydantic models into serialized formats like JSON or Python dictionaries using configurable serialization options.
Instructions
Dump validated data using Pydantic serialization behavior.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"data": "<data>"
},
"name": "serialize_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| data | Yes | ||
| output_mode | No | python | |
| by_alias | No | ||
| exclude_unset | No | ||
| exclude_defaults | No | ||
| exclude_none | No | ||
| round_trip | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | ||
| artifacts | No | ||
| diagnostics | No | ||
| resolved_target | No |