matrix_transpose
Flips a matrix over its diagonal, turning rows into columns and columns into rows. Use it to reorganize data or prepare matrices for multiplication.
Instructions
Transposes a matrix.
Args: matrix: The matrix to transpose as a list of lists.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> matrix_transpose([[1, 2], [3, 4]]) {'result': [[1, 3], [2, 4]]}
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": {
"matrix": "<matrix>"
},
"name": "matrix_transpose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes |