add-relation
Adds target objects to a specified relation field on a source object in Parse Platform. Provide source object ID, relation field, and target IDs to update relations.
Instructions
Add objects to a relation field
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": {
"className": "<className>",
"objectId": "<objectId>",
"relationField": "<relationField>",
"targetClassName": "<targetClassName>",
"targetIds": "<targetIds>"
},
"name": "add-relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | Yes | The source object's ID | |
| className | Yes | The source class name | |
| targetIds | Yes | Array of target object IDs to add to the relation | |
| relationField | Yes | The name of the relation field | |
| targetClassName | Yes | The target class name |