script
Index or format JS, TS, JSX, and Flow offline to return functions, dependencies, call sites, strings, and URLs without executing code; map mode reads only explicit mapPath locations.
Instructions
离线JS/TS/JSX/Flow索引或格式化,返回函数/依赖/调用点/字符串/URL;不执行代码。map只读取显式mapPath映射位置。
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": {
"action": "<action>",
"path": "<path>"
},
"name": "script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| path | Yes | ||
| action | Yes | ||
| column | No | ||
| syntax | No | ||
| mapPath | No |