add_mapping_trigger
Add a trigger to an input mapping in an Input Mapping Context by specifying the context asset, mapping index, and trigger type.
Instructions
Add a trigger to a specific mapping in an Input Mapping Context.
Args: context_path: Path to the IMC asset mapping_index: Index of the mapping (from get_input_mapping_context) trigger_type: Trigger class name (e.g. "InputTriggerPressed") properties: Optional trigger properties
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": {
"context_path": "<context_path>",
"mapping_index": "<mapping_index>",
"trigger_type": "<trigger_type>"
},
"name": "add_mapping_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| properties | No | ||
| context_path | Yes | ||
| trigger_type | Yes | ||
| mapping_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |