write_project_script
Create or replace a project library script from Python/Jython source, with dry-run validation and confirmation before writing.
Instructions
Create or replace a project library script.
Args:
module_path: Dotted module path, e.g. MyModule.NewModule.
code: Python/Jython source.
project: Project name; defaults to the active project.
confirm: Must be True to write.
dry_run: Validate and preview without writing.
Returns: Write acknowledgement, or validation issues in dry-run mode.
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": {
"module_path": "<module_path>",
"code": "<code>"
},
"name": "write_project_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| confirm | No | ||
| dry_run | No | ||
| project | No | ||
| module_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||