[ { "name": "help", "description": "Describe your own capability surface, or one method of it by name.", "inputSchema": { "type": "object", "properties": { "methodName": { "type": "string" } }, "required": [], "additionalProperties": false } }, { "name": "has", "description": "Report whether a pet name path exists in your directory.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "list", "description": "List the pet names in your directory, or in the directory at a path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [], "additionalProperties": false } }, { "name": "remove", "description": "Remove a pet name. The named value itself is not deleted.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "move", "description": "Rename a pet name; the original name is removed.", "inputSchema": { "type": "object", "properties": { "fromPath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "toPath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "fromPath", "toPath" ], "additionalProperties": false } }, { "name": "copy", "description": "Give an existing value a second pet name.", "inputSchema": { "type": "object", "properties": { "fromPath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "toPath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "fromPath", "toPath" ], "additionalProperties": false } }, { "name": "identify", "description": "Report the formula identifier a pet name path designates.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "reverseIdentify", "description": "List the pet names that designate a formula identifier.", "inputSchema": { "type": "object", "properties": { "identifier": { "type": "string" } }, "required": [ "identifier" ], "additionalProperties": false } }, { "name": "listIdentifiers", "description": "List the formula identifiers in your directory, or in the directory at a path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [], "additionalProperties": false } }, { "name": "storeIdentifier", "description": "Name the value a formula identifier designates.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "identifier": { "type": "string" } }, "required": [ "petNamePath", "identifier" ], "additionalProperties": false } }, { "name": "locate", "description": "Report the locator for a pet name path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "listLocators", "description": "List the locators in your directory, or in the directory at a path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [], "additionalProperties": false } }, { "name": "reverseLocate", "description": "List the pet names that designate a locator.", "inputSchema": { "type": "object", "properties": { "locator": { "type": "string", "description": "A locator, for example from locate or invite." } }, "required": [ "locator" ], "additionalProperties": false } }, { "name": "storeLocator", "description": "Adopt a locator: give the value it designates a pet name in your directory.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "locator": { "type": "string", "description": "A locator, for example from locate or invite." } }, "required": [ "petNamePath", "locator" ], "additionalProperties": false } }, { "name": "locateContent", "description": "Report the content locator (a magnet URN) for a pet name path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "listContent", "description": "List the content locators in your directory, or in the directory at a path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [], "additionalProperties": false } }, { "name": "storeContent", "description": "Store the content at a pet name path and report its content locator.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "reverseLocateContent", "description": "List the pet names whose content a content locator designates.", "inputSchema": { "type": "object", "properties": { "locator": { "type": "string", "description": "A locator, for example from locate or invite." } }, "required": [ "locator" ], "additionalProperties": false } }, { "name": "internalizeContentLocator", "description": "Internalize a content locator into the local content store.", "inputSchema": { "type": "object", "properties": { "locator": { "type": "string", "description": "A locator, for example from locate or invite." } }, "required": [ "locator" ], "additionalProperties": false } }, { "name": "loadContent", "description": "Load the content a content locator designates.", "inputSchema": { "type": "object", "properties": { "locator": { "type": "string", "description": "A locator, for example from locate or invite." } }, "required": [ "locator" ], "additionalProperties": false } }, { "name": "invite", "description": "Mint an invitation for a new correspondent and report its locator.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "accept", "description": "Redeem an invitation locator and name the new correspondent.", "inputSchema": { "type": "object", "properties": { "locator": { "type": "string", "description": "A locator, for example from locate or invite." }, "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "locator", "petNamePath" ], "additionalProperties": false } }, { "name": "makeDirectory", "description": "Create a new directory at a pet name path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "makePath", "description": "Create the directory at a pet name path and any intermediate directories, only where they do not yet exist. makePath calls run one at a time, so one never replaces directories another created; a concurrent mkdir is not ordered against them.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "readText", "description": "Read the text of a file at a pet name path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "maybeReadText", "description": "Read the text of a file at a pet name path, or nothing if it is absent.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "writeText", "description": "Write text to a file at a pet name path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "text": { "type": "string" } }, "required": [ "petNamePath", "text" ], "additionalProperties": false } }, { "name": "storeValue", "description": "Store a JSON value under a pet name path.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "value": {} }, "required": [ "petNamePath", "value" ], "additionalProperties": false } }, { "name": "glob", "description": "List the file paths matching a glob pattern in the mount at a pet name path.", "inputSchema": { "type": "object", "properties": { "mountPath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "pattern": { "type": "string" }, "followSymlinks": { "type": "boolean" } }, "required": [ "mountPath", "pattern" ], "additionalProperties": false } }, { "name": "grep", "description": "Search file contents for a regular expression in the mount at a pet name path, optionally only in the given file paths.", "inputSchema": { "type": "object", "properties": { "mountPath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "pattern": { "type": "string" }, "paths": { "type": "array", "items": { "type": "string" } }, "maxResults": { "type": "integer", "minimum": 1 }, "followSymlinks": { "type": "boolean" } }, "required": [ "mountPath", "pattern" ], "additionalProperties": false } }, { "name": "glorp", "description": "Search the contents of the files matching a glob pattern for a regular expression, in the mount at a pet name path.", "inputSchema": { "type": "object", "properties": { "mountPath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "globPattern": { "type": "string" }, "grepPattern": { "type": "string" }, "maxResults": { "type": "integer", "minimum": 1 }, "followSymlinks": { "type": "boolean" } }, "required": [ "mountPath", "globPattern", "grepPattern" ], "additionalProperties": false } }, { "name": "evaluate", "description": "Evaluate JavaScript in a worker, with named values from your directory in scope. codeNames[i] is bound to petNamePaths[i].", "inputSchema": { "type": "object", "properties": { "workerName": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "source": { "type": "string" }, "codeNames": { "type": "array", "items": { "type": "string" } }, "petNamePaths": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "resultName": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "source", "codeNames", "petNamePaths" ], "additionalProperties": false } }, { "name": "define", "description": "Propose code with named slots to your host, who fills each slot with a value and runs it.", "inputSchema": { "type": "object", "properties": { "source": { "type": "string" }, "slots": { "type": "object", "additionalProperties": { "type": "object", "properties": { "label": { "type": "string" } }, "required": [ "label" ], "additionalProperties": false } } }, "required": [ "source", "slots" ], "additionalProperties": false } }, { "name": "listMessages", "description": "List the messages in your inbox.", "inputSchema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false } }, { "name": "send", "description": "Send a package message: text fragments interleaved with named values. strings has one more entry than edgeNames; petNames names the values.", "inputSchema": { "type": "object", "properties": { "recipient": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "strings": { "type": "array", "items": { "type": "string" } }, "edgeNames": { "type": "array", "items": { "type": "string" } }, "petNames": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } } }, "required": [ "recipient", "strings", "edgeNames", "petNames" ], "additionalProperties": false } }, { "name": "reply", "description": "Reply to a message in your inbox with a package message.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." }, "strings": { "type": "array", "items": { "type": "string" } }, "edgeNames": { "type": "array", "items": { "type": "string" } }, "petNames": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } } }, "required": [ "messageNumber", "strings", "edgeNames", "petNames" ], "additionalProperties": false } }, { "name": "editMessage", "description": "Replace the content of a message you sent; done marks it final.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." }, "strings": { "type": "array", "items": { "type": "string" } }, "edgeNames": { "type": "array", "items": { "type": "string" } }, "petNames": { "type": "array", "items": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "done": { "type": "boolean" } }, "required": [ "messageNumber", "strings", "edgeNames", "petNames" ], "additionalProperties": false } }, { "name": "messageHistory", "description": "List the revisions of a message.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." } }, "required": [ "messageNumber" ], "additionalProperties": false } }, { "name": "adopt", "description": "Give a pet name to a value carried by a message in your inbox.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." }, "edgeName": { "type": "string" }, "petName": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "messageNumber", "edgeName", "petName" ], "additionalProperties": false } }, { "name": "dismiss", "description": "Remove a message from your inbox.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." } }, "required": [ "messageNumber" ], "additionalProperties": false } }, { "name": "dismissAll", "description": "Remove every message from your inbox.", "inputSchema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false } }, { "name": "request", "description": "Ask a correspondent for a value and wait for the answer, optionally naming it.", "inputSchema": { "type": "object", "properties": { "recipient": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "description": { "type": "string" }, "responseName": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "recipient", "description" ], "additionalProperties": false } }, { "name": "resolve", "description": "Answer a request in your inbox with a named value.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." }, "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "messageNumber", "petNamePath" ], "additionalProperties": false } }, { "name": "reject", "description": "Decline a request in your inbox, optionally saying why.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." }, "reason": { "type": "string" } }, "required": [ "messageNumber" ], "additionalProperties": false } }, { "name": "sendValue", "description": "Reply to a message with a named value.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." }, "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "messageNumber", "petNamePath" ], "additionalProperties": false } }, { "name": "form", "description": "Send a form for a correspondent to fill in.", "inputSchema": { "type": "object", "properties": { "recipient": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." }, "description": { "type": "string" }, "fields": { "type": "array", "items": { "type": "object" } } }, "required": [ "recipient", "description", "fields" ], "additionalProperties": false } }, { "name": "submit", "description": "Submit values for a form in your inbox.", "inputSchema": { "type": "object", "properties": { "messageNumber": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, { "type": "string", "pattern": "^\\+?[0-9]+$" } ], "description": "A message number from listMessages, for example 5 or \"5\" (write a number past 9007199254740991 as a decimal string)." }, "values": { "type": "object" } }, "required": [ "messageNumber", "values" ], "additionalProperties": false } }, { "name": "followMessages", "description": "Follow your inbox: the current messages, then each new one. Returns a follower to read with readFollower.", "inputSchema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false } }, { "name": "followNameChanges", "description": "Follow the names in your directory: the current names, then each change. Returns a follower to read with readFollower.", "inputSchema": { "type": "object", "properties": {}, "required": [], "additionalProperties": false } }, { "name": "followLocatorNameChanges", "description": "Follow the pet names that designate a locator. Returns a follower to read with readFollower.", "inputSchema": { "type": "object", "properties": { "locator": { "type": "string", "description": "A locator, for example from locate or invite." } }, "required": [ "locator" ], "additionalProperties": false } }, { "name": "followStream", "description": "Follow the stream (a reader) stored under a pet name path. Returns a follower to read with readFollower.", "inputSchema": { "type": "object", "properties": { "petNamePath": { "type": "array", "items": { "type": "string" }, "description": "A pet name path, for example [\"docs\", \"readme.md\"]." } }, "required": [ "petNamePath" ], "additionalProperties": false } }, { "name": "readFollower", "description": "Read up to maxItems items from a follower, returning within waitMilliseconds in all. done is true once the stream has ended.", "inputSchema": { "type": "object", "properties": { "follower": { "type": "string" }, "maxItems": { "type": "integer", "minimum": 1, "maximum": 256 }, "waitMilliseconds": { "type": "integer", "minimum": 0, "maximum": 30000 } }, "required": [ "follower" ], "additionalProperties": false } }, { "name": "closeFollower", "description": "Stop following and release a follower.", "inputSchema": { "type": "object", "properties": { "follower": { "type": "string" } }, "required": [ "follower" ], "additionalProperties": false } } ]