transform_pawn_script
Clone and refactor a Pawn script by replacing a theme word throughout the file, preserving original encoding for Thai projects.
Instructions
Clone and refactor a script (e.g. Juice -> Watermelon). MANDATORY for Thai projects to preserve encoding. DO NOT TRANSLATE Thai strings during transformation.
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": {
"sourcePath": "<sourcePath>",
"targetName": "<targetName>",
"oldTheme": "<oldTheme>",
"newTheme": "<newTheme>"
},
"name": "transform_pawn_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newTheme | Yes | The replacement word (e.g., 'Watermelon') | |
| oldTheme | Yes | The word to replace (e.g., 'Juice') | |
| sourcePath | Yes | Path to the original .pwn or .inc file | |
| targetName | Yes | New name for the file (e.g. 'auto_watermelon') |