create_smart_client_script
Creates ERPNext client scripts through the legacy smart-script workflow; use create_client_script with mode='smart' for current use.
Instructions
[DEPRECATED] Use create_client_script with mode='smart' instead – kept for backward compatibility
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": {
"script": "<script>",
"dt": "<dt>"
},
"name": "create_smart_client_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dt | Yes | Target DocType | |
| name | No | Script name (optional, auto-generated if not provided) | |
| view | No | View (Form/List, optional) | |
| script | Yes | JavaScript code for the client script | |
| enabled | No | Enabled (1/0, optional, defaults to 1) | |
| script_type | No | Script type (optional) |