新增预处理信息
open_pre_addAdd a preprocessing rule by submitting code, name, identifier, and language type, and receive a new preprocessing ID for use in message processing.
Instructions
POST /open/pre/add - 新增预处理(需会员)。 请求: content(预处理代码,必填), preName(名称,必填), preCode(编码,必填), contentType(编程语言;1-JavaScript,必填)。 统一响应: code(数字,200成功), msg(字符串), data(业务数据)。 data: 新建预处理编号(数字)。
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": {
"preName": "<preName>",
"preCode": "<preCode>",
"content": "<content>",
"contentType": "<contentType>"
},
"name": "open_pre_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | 预处理代码 | |
| preCode | Yes | 预处理编码 | |
| preName | Yes | 预处理名称 | |
| contentType | Yes | 编程语言类型;1-JavaScript |