create_match
Create a text expansion shortcut by defining a trigger and its replacement text in an Espanso config file, with optional variables for dynamic content.
Instructions
Create a new text expansion
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": {
"trigger": "<trigger>",
"replace": "<replace>"
},
"name": "create_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File to add the match to (default: base.yml) | |
| vars | No | Variables for dynamic content | |
| replace | Yes | The replacement text | |
| trigger | Yes | The trigger text (e.g., ':hello') |