|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > LMS. - LM-Studio Commands > NEW: LMS v2.1 Commands - Model Query, Status, and Text Extraction > LMS.GetLoadedModelsJSON - Get Loaded Models JSON |
Retrieves the complete raw JSON response from LM Studio's /api/v0/models endpoint. This contains detailed information about all currently loaded models.
Syntax:
LMS.GetLoadedModelsJSON|$$RET_VAR
Parameters:
$$RET_VAR (Variable, required) - Variable to receive the JSON data.
Return Value:
Returns raw JSON string containing model information including IDs, states, types, and metadata. Returns empty string on error.
Examples:
; Get raw JSON and parse with PSJ
LMS.GetLoadedModelsJSON|json
PSJ.Parse|json|obj
; Extract specific model info using PSJ commands...
Notes:
For simpler use cases, consider LMS.GetLoadedModelCount or LMS.GetModelByIndex instead.