← All procedures
procedure.search
Search the procedures by words: the best matches of the key, the tags and the description
MCPCLIbrowser- Package
- @procedures/client · README
- Path
["procedure","search"]- CLI
mark procedure search --query <string>- MCP tool
procedure.search on the dev-tools server- As data
{"$proc":["procedure","search"],"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","search"], { query: "<query>" });
console.log(JSON.stringify(result));From the command line
$ mark procedure search --query <string>
As data, in a program
{ "$proc": ["procedure", "search"], "input": { "query": "<query>" } }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "The words to find, for example \"median interval\""
},
"limit": {
"description": "The most hits, from 1 to 100. The default is 10.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"namespace": {
"description": "Only the procedures under this first path segment",
"type": "string"
}
},
"required": [
"query"
]
},
"output": {
"type": "object",
"properties": {
"hits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "array",
"items": {
"type": "string"
},
"description": "The path of the procedure"
},
"key": {
"type": "string",
"description": "The path as a dotted key"
},
"description": {
"description": "The first line of the description, at most 200 characters",
"type": "string"
},
"score": {
"type": "number",
"description": "The score of the match: a better match has a higher score"
}
},
"required": [
"path",
"key",
"score"
],
"additionalProperties": {}
},
"description": "The best matches, the best first"
},
"matched": {
"type": "number",
"description": "The number of procedures that match one word of the query or more"
},
"total": {
"type": "number",
"description": "The number of procedures of the search"
}
},
"required": [
"hits",
"matched",
"total"
],
"additionalProperties": {}
}
}