extract_fields
Apply ad-hoc named regexes ({fieldName: JS regex source}) to a message body and return the first capture/match per field.
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": {
"inboxId": "<inboxId>",
"messageId": "<messageId>",
"fields": "<fields>"
},
"name": "extract_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Field name -> regex source, e.g. {"code": "code is (\\d{6})"}. 1-8 fields. | |
| inboxId | Yes | ||
| messageId | Yes |