analyze_project_dependencies
Analyze package.json for platform components that should be optionalDependencies set to version "instance" when adding or changing instance-backed dependencies before snc ui-component deploy --fa.
Instructions
Analyzes a Next Experience UI component project package.json for platform components that should be declared as optionalDependencies with the version set to "instance". Use this when adding or changing instance-backed platform dependencies, including preparation for eventual deployment with snc ui-component deploy --fa, regardless of the local preview workflow.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"packageJsonPath": "<packageJsonPath>"
},
"name": "analyze_project_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packageJsonPath | Yes | Path to the target project package.json, absolute or relative to the current working directory. | |
| plannedComponentTags | No | Optional list of planned platform component tags, such as now-button or now-modal. |