Get implementation model
get_modelReturn the implementation model of this NET Genium instance (application groups, applications, edit forms, view pages, controls, scripts and queries) as JSON, read-only. Without app and form it returns only the overview of application groups, applications and edit forms. Narrow the answer as much as the task allows: form returns the edit form instead of a whole application, and depth 'structure' leaves out scripts and the queries of controls entirely, including their ids — an incremental change of one control needs neither. Images embedded in the text of a RichText control are returned as a placeholder instead of their base64 data; write_model turns the placeholders back into the stored images, so the text around them can be changed without sending the images with it. Earlier versions of scripts, database queries and the code of HTML and JavaScript controls are returned by get_model_history.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Optional application name as returned by the overview, or its id. Omit to get the overview only; the detailed inventory of the whole instance is never returned at once because of its size. The name is compared exactly, including letter case, and every application of that name is returned — the id identifies a single application. | |
| form | No | Optional edit form name, identifier (dbName) or id. Returns that form with its controls and action buttons, without the view pages and categories of its application — the cheapest way to read the model before changing one control. Can be used on its own; the form is then looked up across the whole instance. The name is compared exactly, including letter case, and every form of that name is returned — the id or dbName identifies a single form. | |
| depth | No | Optional depth of the answer: 'full' (default) returns everything, 'structure' leaves out scripts and the queries of controls entirely, including their ids, and keeps controls, their ids and properties. Read 'structure' first and ask again for 'full' only when the script or query itself is needed. |