functiongraph__ExportFunction
Exports a FunctionGraph function's code and/or configuration by URN and project ID. Use it to retrieve function artifacts for backup, migration, or inspection.
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": {
"function_urn": "<function_urn>",
"project_id": "<project_id>"
},
"name": "functiongraph__ExportFunction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 是否导出函数代码,默认为false。若无type参数,则必填code=true或config=true至少一项。 | |
| type | No | 不兼容与code、config参数混用;type=code代表导出代码,type=config代码导出配置 | |
| config | No | 是否导出函数配置,默认为false。若无type参数,则必填code=true或config=true至少一项。 | |
| project_id | Yes | 租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。 | |
| function_urn | Yes | 函数的URN,详细解释见FunctionGraph函数模型的描述。 |