ljs_api
Query TypeScript signatures for an LJS plugin API before coding to confirm parameter names and types and avoid incorrect guesses; omit the API name to list all signatures.
Instructions
查询某个 LJS 插件的 TypeScript 签名。写代码前用它确认参数名与类型,避免靠印象猜错——这些包的参数多为解构对象(如 handleListTree 收 { data, id, parentId, children }),凭记忆写极易出错。不传 api 参数则返回该包全部签名(ljs-tools 约 16K 字符,慎用)。
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": {
"plugin": "<plugin>"
},
"name": "ljs_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | No | 可选:接口名或方法名,如 LJSnumModule、moneySplit | |
| plugin | Yes | npm 包名,如 trends-table-vue3 |