transform_run_local
Execute a local Maltego transform binary or script with parameters and entity data, then parse its XML response or exception message.
Instructions
Execute a local Maltego transform binary/script directly (shell: false) using the Maltego v4.13.0 CLI protocol ([...params, entityValue, escapedAdditionalFields]) and parse its XML response or exception message.
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": {
"command": "<command>",
"entity_value": "<entity_value>"
},
"name": "transform_run_local"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Executable or interpreter path (e.g., python3 or /path/to/transform.py). | |
| parse_xml | No | Whether to parse stdout as Maltego XML (default: true). | |
| parameters | No | Optional transform parameters as a command-line string or array of string tokens placed before entity_value. | |
| timeout_ms | No | Execution timeout in milliseconds (defaults to server config transformTimeoutMs). | |
| entity_type | No | Optional input Maltego entity type metadata (e.g., maltego.Domain). | |
| output_mtgx | No | Optional workspace-relative or confined .mtgx archive path to merge input/output entities and directed links into. | |
| working_dir | No | Optional working directory for the local transform process. | |
| entity_value | Yes | Primary value of the input Maltego entity. | |
| max_output_bytes | No | Maximum combined stdout/stderr bytes before terminating the transform. | |
| additional_fields | No | Optional entity properties serialized as `k1=v1#k2=v2` with `\\`, `\=`, `\#` escaping (omitted from argv if empty). |