src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
/**
* Per-chat configuration for the Godot plugin.
*
* LM Studio renders a UI automatically from this schema. Values are read inside
* tool implementations via `ctl.getPluginConfig(configSchematics)`.
*/
export const configSchematics = createConfigSchematics()
.field(
"docsMaxResults",
"numeric",
{
displayName: "Docs Max Results",
subtitle: "Maximum number of results returned by the Godot documentation search tool.",
min: 1,
max: 20,
int: true,
step: 1,
},
5,
)
.field(
"docsMaxChars",
"numeric",
{
displayName: "Docs Max Characters",
subtitle: "Maximum amount of text returned by the fetch Godot documentation tool.",
min: 500,
max: 100000,
int: true,
step: 500,
},
20000,
)
.field(
"docsVersion",
"select",
{
displayName: "Godot Docs Version",
subtitle: "Which Godot documentation version to query.",
options: ["stable", "beta", "4.3", "4.4", "5.0"],
},
"stable",
)
.field(
"godotPath",
"string",
{
displayName: "Godot Executable Path",
subtitle:
"Optional explicit path to the Godot executable. Overrides the GODOT_PATH environment variable when set.",
placeholder: "/path/to/godot",
},
"",
)
.field(
"toolsEnabled",
"boolean",
{
displayName: "Enable Godot Tools",
subtitle: "Toggle the engine-control tools. Documentation tools are always available.",
},
true,
)
.build();
src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
/**
* Per-chat configuration for the Godot plugin.
*
* LM Studio renders a UI automatically from this schema. Values are read inside
* tool implementations via `ctl.getPluginConfig(configSchematics)`.
*/
export const configSchematics = createConfigSchematics()
.field(
"docsMaxResults",
"numeric",
{
displayName: "Docs Max Results",
subtitle: "Maximum number of results returned by the Godot documentation search tool.",
min: 1,
max: 20,
int: true,
step: 1,
},
5,
)
.field(
"docsMaxChars",
"numeric",
{
displayName: "Docs Max Characters",
subtitle: "Maximum amount of text returned by the fetch Godot documentation tool.",
min: 500,
max: 100000,
int: true,
step: 500,
},
20000,
)
.field(
"docsVersion",
"select",
{
displayName: "Godot Docs Version",
subtitle: "Which Godot documentation version to query.",
options: ["stable", "beta", "4.3", "4.4", "5.0"],
},
"stable",
)
.field(
"godotPath",
"string",
{
displayName: "Godot Executable Path",
subtitle:
"Optional explicit path to the Godot executable. Overrides the GODOT_PATH environment variable when set.",
placeholder: "/path/to/godot",
},
"",
)
.field(
"toolsEnabled",
"boolean",
{
displayName: "Enable Godot Tools",
subtitle: "Toggle the engine-control tools. Documentation tools are always available.",
},
true,
)
.build();