Code
Information / clio.code.v1
Display source code or a command when the exact text matters.
When to use it
Display source code or a command when the exact text matters.
What the agent supplies
Syntax-highlighted source, inline or from a referenced file.
The agent chooses the content and binds it to the component. CLIO then renders the view and its available controls.
What the agent receives
The exact output of load_skill, including resolved local definitions.
load_skill("a2ui-catalog-clio-workspace", file="catalog.json#/components/clio.code.v1"){
"allOf": [
{
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon"
},
{
"properties": {
"weight": {
"description": "Relative flex weight of this component inside a Row or Column. Only meaningful as a direct child of one.",
"type": "number"
}
},
"type": "object"
},
{
"properties": {
"code": {
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString",
"description": "Inline source; use dataUri instead for a referenced file."
},
"component": {
"const": "clio.code.v1"
},
"dataUri": {
"description": "A workspace file path or artifact:// reference; CLIO registers a path as an artifact before validation. Its file content is the source.",
"not": {
"pattern": "\\s"
},
"pattern": "^artifact://artifact_[A-Za-z0-9_-]+$",
"type": "string"
},
"language": {
"type": "string"
},
"title": {
"$ref": "https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString"
}
},
"required": [
"component",
"language"
],
"type": "object"
},
{
"description": "Exactly one of code or dataUri is required.",
"oneOf": [
{
"not": {
"required": [
"dataUri"
]
},
"required": [
"code"
]
},
{
"not": {
"required": [
"code"
]
},
"required": [
"dataUri"
]
}
]
}
],
"description": "Syntax-highlighted source, inline or from a referenced file.",
"type": "object",
"unevaluatedProperties": false
}
Standard refs (not loadable here): https://a2ui.org/specification/v0_9/common_types.json#/$defs/ComponentCommon, https://a2ui.org/specification/v0_9/common_types.json#/$defs/DynamicString