Resolve Mobiscroll UI Environment
resolveEnvironmentResolves which Mobiscroll framework and major version a project uses, from the contents of its package.json. This server runs remotely and has no access to the local filesystem, so the file contents are passed in as packageJsonContent. Returns the framework and major version that the other tools in this server take as arguments.
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": "resolveEnvironment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | No | Only for the no-package.json path, and only together with noPackageJsonReason. Do NOT use this to skip reading an existing package.json - passing framework without noPackageJsonReason is rejected. | |
| packageJsonContent | No | REQUIRED (raw file text). The full raw content of the project's package.json - the repository root, or the nearest one above the file you are editing. Read the file from the workspace and pass its content here. In a monorepo, use the package.json that declares the @mobiscroll/* dependency. | |
| noPackageJsonReason | No | Set ONLY after searching the workspace and confirming NO package.json exists (repo root or any parent of the edited file). 'cdn' = Mobiscroll loaded via a script tag; 'no-package-json-found-after-search' = you searched and found none. Required (with framework) to use the no-package.json path. |