nacos_publish_config
Publishes configuration content to Nacos while preserving original formatting; fetch the current config first, modify it, then publish the updated dataId, group, and content.
Instructions
发布配置到 Nacos。原样保存配置内容,不修改任何格式(缩进、注释、空行等)。使用前必须先通过 nacos_get_config 获取当前内容,在原始内容基础上修改后再发布。
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": {
"dataId": "<dataId>",
"content": "<content>"
},
"name": "nacos_publish_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | 配置分组,默认使用环境变量 NACOS_GROUP | |
| dataId | Yes | 配置的 dataId,如 re-gateway.yaml | |
| content | Yes | 完整的配置内容,必须保持原始格式(YAML/properties 原样保存) | |
| namespace | No | 命名空间 ID,默认使用环境变量 NACOS_NAMESPACE |