add_field
Adds a typed field to a Parse Server class to extend an app schema, supporting scalar, file, geo, array, object, pointer, and relation types.
Instructions
Add a field to a class: a String, Number, Boolean, Date, File, GeoPoint, Polygon, Array or Object, or a Pointer or Relation to another class (targetClass).
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": {
"appObjectId": "<appObjectId>",
"className": "<className>",
"fieldName": "<fieldName>",
"fieldType": "<fieldType>"
},
"name": "add_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | Yes | The class name | |
| fieldName | Yes | The field name to add | |
| fieldType | Yes | The field type | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) | |
| targetClass | No | For Pointer/Relation types, the target class name |