← All procedures
procedure.delete
Delete a runtime-defined procedure
MCPCLIbrowser- Package
- @procedures/client · README
- Path
["procedure","delete"]- CLI
mark procedure delete --path <string[]>- MCP tool
procedure.delete on the dev-tools server- As data
{"$proc":["procedure","delete"],"input":{}}- Tags
- core, meta
Try it in the Composer →
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY, allCoreProcedures } from "@procedures/client";
for (const procedure of allCoreProcedures) {
if (!PROCEDURE_REGISTRY.has(procedure.path)) PROCEDURE_REGISTRY.register(procedure);
}
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["procedure","delete"], { path: [] });
console.log(JSON.stringify(result));From the command line
$ mark procedure delete --path <string[]>
As data, in a program
{ "$proc": ["procedure", "delete"], "input": { "path": [] } }Input
| Field | Type | Required | Default | Description |
|---|
path | string[] | yes | | The path of the procedure to delete (only a procedure that procedure.define made) |
Output
| Field | Type | Required | Default | Description |
|---|
deleted | boolean | yes | | True when the registry removed the procedure |
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"path": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "The path of the procedure to delete (only a procedure that procedure.define made)"
}
},
"required": [
"path"
]
},
"output": {
"type": "object",
"properties": {
"deleted": {
"type": "boolean",
"description": "True when the registry removed the procedure"
}
},
"required": [
"deleted"
],
"additionalProperties": {}
}
}