mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
d4bd50c012
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>
61 lines
1.3 KiB
JSON
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"
|
|
]
|
|
}
|
|
}
|