pull_collection_changes
Sync updates from a parent collection to its forked version by providing the collection ID.
Instructions
Pull changes from parent collection into forked collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | Collection ID |
Implementation Reference
- Handler function that executes the pull_collection_changes tool. Makes a PUT request to /collections/{collection_id}/pulls endpoint and returns the response data.
async pullCollectionChanges(args: any): Promise<ToolCallResponse> { const response = await this.client.put(`/collections/${args.collection_id}/pulls`, {}); return this.createResponse(response.data); } - Schema/definition for the pull_collection_changes tool. Defines the inputSchema with a required 'collection_id' string property and a description: 'Pull changes from parent collection into forked collection'.
{ name: 'pull_collection_changes', description: 'Pull changes from parent collection into forked collection', inputSchema: { type: 'object', properties: { collection_id: { type: 'string', description: 'Collection ID', } }, required: ['collection_id'], }, }, - src/tools/api/collections/index.ts:75-76 (registration)Registration of the pull_collection_changes tool in the switch-case dispatch inside handleToolCall method. Routes the tool name to the handler method.
case 'pull_collection_changes': return await this.pullCollectionChanges(args);