add_custom_property
Add a typed custom property to a Perspective component in a view, with an initial value and optional dry-run preview before writing.
Instructions
Add a custom property to a component.
Args:
view_path: View containing the component.
component_name: Component meta.name.
property_name: New property name.
property_type: Perspective type, e.g. String, Int4 or Boolean.
default_value: Initial value.
project: Project name; defaults to the active project.
confirm: Must be True to write.
dry_run: Preview the change without writing.
Returns: The updated custom-property map or a preview payload.
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": {
"view_path": "<view_path>",
"component_name": "<component_name>",
"property_name": "<property_name>",
"property_type": "<property_type>"
},
"name": "add_custom_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| dry_run | No | ||
| project | No | ||
| view_path | Yes | ||
| default_value | No | ||
| property_name | Yes | ||
| property_type | Yes | ||
| component_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||