component_operations
Check out components to assets, check them in, and list assets with component checkouts. Adjust component quantity on each checkout or checkin.
Instructions
Perform checkout/checkin operations on components.
Components can be checked out to assets (not users). Each checkout decrements the available quantity.
Operations:
checkout: Checkout component(s) to an asset (requires checkout_data with assigned_to asset ID)
checkin: Checkin component(s) from an asset (requires checkout_id)
list_assets: List all assets that have this component checked out
Returns: dict: Result of the operation including success status and data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The operation to perform on the component | |
| checkout_id | No | Component asset ID from checkout record (required for checkin) | |
| component_id | Yes | Component ID | |
| checkout_data | No | Checkout data (required for checkout action) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||