functiongraph__ImportFunction
Imports a function into Huawei Cloud FunctionGraph from a base64-encoded code file, using the specified function name, file metadata, and project ID.
Instructions
[FUNCTIONGRAPH] 导入函数
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": {
"file_code": "<file_code>",
"file_name": "<file_name>",
"file_type": "<file_type>",
"func_name": "<func_name>",
"project_id": "<project_id>"
},
"name": "functiongraph__ImportFunction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | 应用名称,默认为default | |
| file_code | Yes | 函数代码。代码必须要进行base64编码 | |
| file_name | Yes | 文件名 | |
| file_type | Yes | 文件类型 | |
| func_name | Yes | 函数名 | |
| project_id | Yes | 租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。 |