civil3d_session
Begin, execute, commit, or abort multi-step Civil 3D script sessions within a shared transaction for complex workflows.
Instructions
Manage multi-step Civil 3D script sessions with a shared transaction. Use 'begin' to start, 'execute' for each script step (no commit), 'commit' to save all changes, or 'abort' to discard. Useful for complex workflows that need multiple code steps in one transaction.
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": {
"action": "<action>"
},
"name": "civil3d_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | C# code to run (required for execute action) | |
| action | Yes | begin | execute | commit | abort | |
| confirmed | No | Set true to confirm destructive operations in session scripts | |
| sessionId | No | Session ID (required for execute, commit, abort) | |
| description | No | Brief description for logging |