connect_objects
Create a connection between two Pure Data objects by specifying the source outlet and destination inlet ports to link them with a patch cord.
Instructions
Create a connection between two Pd objects.
This tool connects two objects in the Pure Data patch by creating a
patch cord between the specified outlet and inlet.
The connection system uses numeric indices rather than string IDs,
as required by the Pure Data patch. The global object_indices
dictionary maps from the user-friendly string IDs to these numeric indices.
Args:
source: Source object with id and port
e.g., {"id": "osc~_100_100", "port": 0}
destination: Destination object with id and port
e.g., {"id": "dac~_200_100", "port": 0}
ctx: MCP context
Returns:
Response with status
Example:
connect_objects({"id": "osc~_100_100", "port": 0}, {"id": "dac~_200_100", "port": 0}, ctx)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| destination | Yes |