update_class_include
Replace a class's separate include source—local types, definitions, implementations, macros, test classes—when empty or needing full overwrite. Run list_class_includes first for includeType.
Instructions
Overwrite the WHOLE source of a class's SEPARATE include - local types (CCIMP / 'Local Types' tab), definitions, implementations, macros, or test classes - none of which live in /source/main (update_class/patch_class cannot reach these). Run list_class_includes FIRST to get the exact includeType string. Use this instead of patch_class_include when the include is empty/new (nothing to pattern-match against) or you're replacing all of it. Locks the class, PUTs the whole new source to the discovered include, unlocks, and optionally activates the class. Refuses to run on production profiles.
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": {
"className": "<className>",
"includeType": "<includeType>",
"source": "<source>"
},
"name": "update_class_include"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete new source for this include - REPLACES its entire content | |
| activate | No | Activate the class after writing. Default false. | |
| className | Yes | Class name, e.g. ZCL_ABL_PLANT_EMAIL | |
| transport | No | Transport request. Omit only for local/$TMP objects. | |
| includeType | Yes | Exact includeType reported by list_class_includes for the include you want to write |