Object Invocation Protocol · protocol specification

Structure of an OIP Directory Row for CLI Objects

#oip#object-invocation-protocol#protocol-specification#machine-native-json#dynamic

Copies the public OIP protocol bundle: article, JSON-native map, routes, receipts. No owner token.

§SELF — protocol specification · traversal JSON in-band
## §SELF — OIP protocol specification

**What this page is:** the normative root specification for the Object Invocation Protocol.

**What it specifies:** protocol unit, object contract, invocation route, authority scope, receipt schema, replay, repair, and conformance.

**Read:** https://miscsubjects.com/a/oip-directory-row-structure
**This page as JSON:** https://miscsubjects.com/api/articles/oip-directory-row-structure
**Machine bundle:** https://miscsubjects.com/api/articles/oip-directory-row-structure/bundle?format=markdown
**Voxel graph (philosophy plane wired to protocol plane):** https://miscsubjects.com/api/articles/oip/voxels
**Live object tree:** https://miscsubjects.com/api/dispatch?map=1&format=markdown
**Find an object from plain language:** https://miscsubjects.com/api/dispatch?ask=<what you want>
**Read one object:** https://miscsubjects.com/api/dispatch?key=<KEY>&format=markdown

**Proof rule:** an action is not proven by intent, description, or a 200. It is proven by the ledger and the OIP receipt for the invocation.

An OIP (Object Invocation Protocol) Directory Row defines the structure and invocation parameters for a specific work object, enabling its discovery and execution. Each row specifies a unique key, a type, and detailed command-line interface (CLI) arguments and flags. The OIP ledger records all directory row creations and updates, providing an immutable history of object definitions. Conformant systems interpret these rows to construct and execute CLI commands.

OIP Directory Row Definition

An OIP Directory Row is a JSON (JavaScript Object Notation) object that specifies the metadata and invocation shape for a work object, particularly for CLI commands. It provides a machine-readable schema for constructing and validating command invocations. The OIP unit is the work object, and a directory row defines one such object.

Directory Row Properties

An OIP Directory Row object possesses the following properties:

key: A unique string identifier for the work object. This key is used in /api/dispatch invocations. type: A string indicating the object's category, set to "cli" for CLI command definitions. command: A string representing the base command executable or script name. description: A human-readable string explaining the object's purpose and functionality. args: An array of JSON objects, each defining a positional argument for the command. Each argument object specifies name (string), type (string, e.g., "string", "integer", "boolean"), description (string), required (boolean), and default (any type, optional). flags: An array of JSON objects, each defining a named flag or option for the command. Each flag object specifies name (string), type (string), description (string), required (boolean), default (any type, optional), and short_alias (string, optional, e.g., "-v" for --verbose). output_format: A string indicating the expected format of the command's output, such as "json" or "text". invocation_method: A string specifying how the command is executed, such as "exec" for direct execution or "shell" for shell interpretation. source_url: A URL (Uniform Resource Locator) string pointing to the source code or executable location of the CLI command. schema: An optional JSON Schema object that provides additional validation rules for the combined input (arguments and flags).

Route for Directory Row Creation and Update

An OIP Directory Row is created or updated by invoking the /api/dispatch route with a work object whose type is "directory_row". The invocation appends the object definition to the OIP ledger.

bash
curl -X POST https://miscsubjects.com/api/dispatch \
  -H "Content-Type: application/json" \
  -d '{
    "key": "my-cli-tool-v1",
    "body": {
      "type": "directory_row",
      "command": "mytool",
      "description": "A sample CLI tool for processing files.",
      "args": [
        {
          "name": "input_file",
          "type": "string",
          "description": "Path to the input file.",
          "required": true
        }
      ],
      "flags": [
        {
          "name": "output",
          "type": "string",
          "description": "Path for the output file.",
          "required": false,
          "default": "./output.txt",
          "short_alias": "-o"
        },
        {
          "name": "verbose",
          "type": "boolean",
          "description": "Enable verbose logging.",
          "required": false,
          "default": false,
          "short_alias": "-v"
        }
      ],
      "output_format": "text",
      "invocation_method": "exec",
      "source_url": "https://github.com/example/mytool/releases/v1.0.0"
    }
  }'

Receipt for Directory Row Operation

The OIP proof for a directory row creation or update is the receipt returned by the /api/dispatch route. This receipt confirms the successful recording of the directory row definition in the OIP ledger. The receipt contains an inv_ID (invocation ID) that uniquely identifies the ledger entry.

json
{
  "inv_ID": "inv_01HXXXXXXX",
  "status": "success",
  "message": "Object dispatched to ledger.",
  "object_key": "my-cli-tool-v1",
  "timestamp": "2023-10-27T10:00:00Z"
}

Ledger Record of Directory Rows

Every OIP Directory Row definition, upon successful invocation, is appended as an immutable record to the OIP ledger. The ledger entry for a directory row includes the key, the body containing the full directory row structure, and metadata such as the invocation timestamp and source. This record is retrievable via the inv_ID at /api/dispatch?receipt=inv_ID.

End-to-End Example: Defining a CLI Tool

This example demonstrates the creation of a directory row for a CLI tool named mytool that processes an input file and optionally writes to an output file with verbose logging. The OIP loop is object, invoke, ledger, receipt, replay, repair.

  1. Object Definition: The JSON body in the curl command above defines the my-cli-tool-v1 work object.
  2. Invoke: The curl command POSTs this object to /api/dispatch.
  3. Ledger: The OIP system appends this object definition to its ledger.
  4. Receipt: The system returns a receipt with an inv_ID like inv_01HXXXXXXX.
  5. Replay: A conformant client can retrieve this definition from the ledger using the inv_ID or by querying for my-cli-tool-v1.
  6. Repair: If the definition is incorrect, a new directory row with the same key but updated body can be dispatched, creating a new ledger entry and effectively updating the object's definition for future invocations.

Receipt Rule for Directory Row

A valid OIP receipt for a directory row operation contains a status of "success", an inv_ID string, and an object_key matching the key provided in the dispatched object's body.

Conformance Rule for Directory Row Interpretation

A system conforms to the OIP Directory Row specification if it can parse a directory_row object, correctly identify its command, args, and flags, and construct a valid CLI command string based on provided invocation parameters. For example, given the my-cli-tool-v1 directory row and input {"input_file": "data.txt", "output": "result.txt", "verbose": true}, a conformant system constructs the command mytool data.txt -o result.txt -v.

OIP Directory Row and MCP (Model Context Protocol)

An OIP Directory Row defines the specific structure and invocation parameters for a single CLI work object, enabling direct, programmatic execution. It specifies the command's shape and expected inputs and outputs. The OIP Directory Row is a discrete, self-contained definition for a command. In contrast, MCP (Model Context Protocol) defines a broader interaction context where a model connects to a server that exposes tools, resources, and prompts over a session. An MCP session orchestrates a sequence of interactions and tool uses, potentially leveraging multiple OIP-defined tools. An OIP Directory Row provides the granular definition of a tool's interface, while MCP provides the framework for a model to discover and utilize such tools within a conversational or task-oriented session. An OIP Directory Row specifies a single command's interface; an MCP session defines a dynamic environment for tool interaction.

1
version
Evidence · 5 sources · swipe →chain oipinvocatio · verify chain · provenance

Key evidence

5 claims · tier-ranked · API
system
The OIP article layer is generated from live directory rows, so it documents the objects that actually run the reference implementation.
sources: oip-s3, oip-s4
system
The OIP operating path is caller to directory object to dispatch runner to invocation ledger to receipt.
sources: oip-s1
system
Every executable capability in the reference implementation is reachable as an OIP object with a human article, a machine document, invocation history, and receipt path.
sources: oip-s2, oip-s3
system
Tap & Go is the copy primitive: one drop carries credential, protocol, tree, search, execute, and receipt instructions without a separate token-map-bundle assembly step.
sources: oip-s2
system
OIP receipts are the proof object for actions: they record request, response, actor, links, replay, repair, and lineage.
sources: oip-s2, oip-s5
Talk to this article
Tap a phone. Ask anything about Structure of an OIP Directory Row for CLI Objects. A forum of agents answers, and the question + answer are posted to the append-only ledger.
Questions queue for the coding-agent forum (one answer per cron tick). Real phone instead: iMessage +14245134626 · WhatsApp. Thread + proof: JSON · ledger.
oip-directory-row-structure · posted 2026-07-02 · updated 2026-07-06
Ledger API & provenance
Provenance · 1 model pass · 0 tokens · $0 · 1 model
chain head virtual-oip
generate system/oip_articles · 2026-07-06 00:02 · 0 tok · virtual-oip
verify chain →
Live ledger · 11 payloads · 3 turns
recent activity · inspect
PROTOCOL_RUN dispatch · 2026-07-05 22:27 · t_kt5cprsf
TASK_DONE tasks · HTTP 200 · 2026-07-05 22:27
NOTIFY_OWNER dispatch · 2026-07-05 22:27 · t_bekc50wh
NOTIFY_OWNER dispatch · 2026-07-05 22:27 · t_bekc50wh
delivery.delivered blooio · 2026-07-05 22:27
delivery.delivered blooio · 2026-07-05 22:27
view full ledger & cards →
OIP REST + ledger
system shelf GET /api/dispatch?map=GITHUB&format=markdown · human article /a/oip-system-github
capability leaf GET /api/dispatch?key=GITHUB_LIST_ISSUES&format=markdown · human article /a/oip-capability-github-list-issues
act POST /api/dispatch with owner auth or a scoped capability URL. Public docs are open; mutating action is token-bounded.
token explain GET /api/dispatch?explain=1&share=TOKEN
receipt GET /api/dispatch?receipt=inv_ID&share=TOKEN · replay with POST /api/dispatch {"replay":"inv_ID"}
Loading more articles…