Holds the input parameters passed to a ChatTool's execute() call.
Example
// Parameters is the input wrapper handed to ChatTool.execute() by the AI // assistant. The assistant fills `data` per the JSON schema declared on // the tool's Descriptor; the tool reads it inside execute() and returns // a Result. The example below renames a SceneObject from a tool call. import { ChatTool, Descriptor, Parameters, Result } from'LensStudio:ChatTool';
exportclassRenameSceneObjectToolextendsChatTool { staticdescriptor(): Descriptor { constd = newDescriptor(); d.id = 'com.example.renameSceneObject'; d.name = 'Rename Scene Object'; d.description = 'Rename a SceneObject in the active project.'; // The schema dictates the shape of `parameters.data` the assistant // will produce when calling this tool. d.schema = { type:'object', required: ['oldName', 'newName'], properties: { oldName: { type:'string' }, newName: { type:'string' }, }, }; returnd; }
Holds the input parameters passed to a ChatTool's execute() call.
Example