validate_segment
Validate a segment snippet against the oh-my-posh schema. Useful for validating individual prompt segments before adding them to a configuration.
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": {
"content": "<content>"
},
"name": "validate_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | The format of the segment (auto-detect if not specified) | auto |
| content | Yes | The segment content as a string (JSON, YAML, or TOML) |