Files
ability_ability_runtime/tools/ohos-arktsScript/config.json
T
RuiChen_01 d4bd50c012 add support cli exec skill
Co-Authored-By: Agent
Change-Id: Idb644d4dc783549382aae1546a1dde63209b0fb8
Signed-off-by: RuiChen_01 <chenrui193@huawei.com>

update: 更新文件 config.json

Signed-off-by: RuiChen_01 <chenrui193@huawei.com>
2026-05-11 07:16:23 +08:00

61 lines
1.3 KiB
JSON

{
"name": "ohos-arkTSScript",
"version": "1.0.0",
"description": "Run a specified function from an ArkTS script ABC file",
"executablePath": "/system/bin/cli_tool/executable/ohos-arkTSScript",
"requirePermissions": [],
"inputSchema": {
"type": "object",
"description": "Tool input parameters",
"properties": {
"help": {
"type": "boolean",
"description": "Display this help message",
"default": false
},
"abcPath": {
"type": "string",
"description": "ABC file path"
},
"scriptPath": {
"type": "string",
"description": "Optional script file or class name"
},
"functionName": {
"type": "string",
"description": "Function name to execute"
},
"args": {
"type": "string",
"description": "JSON object string for function arguments, for example {\"arg0\":10,\"arg1\":20}"
}
},
"required": [
"abcPath",
"functionName"
]
},
"outputSchema": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"result": {
"type": "object",
"properties": {}
},
"uri": {
"type": "string"
},
"flag": {
"type": "integer"
}
},
"required": [
"code"
]
}
}