24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
{
|
|
"description": "9P filesystem client for reading/writing agent state (plans, ctl, peers, etc.)",
|
|
"prompt": "## client_9p\n\nRead and write 9P namespace paths. Use instead of shelling out to ollie-9p.\n\n**Operations:**\n- `read`: read file contents\n- `write`: write data to file\n- `rdwr`: write then read (for request-response files like ctl, generate)\n\n**Examples:**\n```\nclient_9p(op=\"read\", path=\"session/$OLLIE_SESSION_ID/agent/$OLLIE_UNAME/plan\")\nclient_9p(op=\"write\", path=\"session/$OLLIE_SESSION_ID/agent/$OLLIE_UNAME/plan\", data=\"## Plan\\n- [ ] step one\")\nclient_9p(op=\"rdwr\", path=\"session/$OLLIE_SESSION_ID/agent/$OLLIE_UNAME/ctl\", data=\"compact\")\n```",
|
|
"args": {
|
|
"type": "object",
|
|
"required": ["op", "path"],
|
|
"properties": {
|
|
"op": {
|
|
"type": "string",
|
|
"enum": ["read", "write", "rdwr"],
|
|
"description": "Operation: read, write, or rdwr"
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"description": "9P path (e.g., session/$OLLIE_SESSION_ID/agent/$OLLIE_UNAME/plan)"
|
|
},
|
|
"data": {
|
|
"type": "string",
|
|
"description": "Data to write (required for write/rdwr)"
|
|
}
|
|
}
|
|
}
|
|
}
|