mknod
Create block or character device nodes for hardware access. Use dry-run to preview changes; returns JSON with node path and type.
Instructions
Create device nodes (block or character special files) with dry-run support. Destructive: creates special device files. May require elevated privileges. Use --dry_run to preview. Returns JSON with the created node path and type. Use to create device files for hardware access. Not for FIFO pipes — use 'mkfifo' for named pipes. Not for regular files — use 'touch'. See also 'mkfifo'.
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": {
"paths": "<paths>"
},
"name": "mknod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Octal mode such as 600 or 666. | 666 |
| paths | Yes | Node paths to create. | |
| dry_run | No | Report operations without changing files. | |
| parents | No | Create missing parent directories. | |
| node_type | No | Node type. | regular |