File I/O
file_ioOpen, close, and write low-level file data for photonic simulation workflows, including sparse matrices, ASCII output, and direct file writes.
Instructions
Low-level file open/close/write helpers.
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": {
"action": "<action>"
},
"name": "file_io"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Objects list for writeascii. | |
| data | No | fwrite data or write word / matrix var name. | |
| action | Yes | Low-level file write operation. | |
| file_path | No | File path where applicable. | |
| type_name | No | fwrite type. | |
| access_type | No | fopen access mode. | |
| sparse_format | No | spwrite format. | sparse |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |