update_match
Modify an existing Espanso text expansion by changing its trigger or replacement text in a config file to correct or revise shortcuts.
Instructions
Update an existing 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": {
"file": "<file>",
"trigger": "<trigger>"
},
"name": "update_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File containing the match | |
| trigger | Yes | The trigger to update | |
| newReplace | No | New replacement text (optional) | |
| newTrigger | No | New trigger text (optional) |