regex_generate
Generate ready-to-use code for a regular expression in JavaScript, Java, Go, PHP, Ruby, Python, or C#. Provide a pattern and flags to receive language-specific implementations.
Instructions
为正则表达式生成各语言代码(js/java/go/php/ruby/python/cs)
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": {
"pattern": "<pattern>"
},
"name": "regex_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | g | |
| pattern | Yes | ||
| language | No | js |