← All procedures

client.constant

Return a constant value

MCPCLIbrowser
Package
@procedures/client · README
Path
["client","constant"]
CLI
mark client constant
MCP tool
client.constant on the dev-tools server
As data
{"$proc":["client","constant"],"input":{}}
Tags
core, utility

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(["client","constant"], { value: "<value>" });
console.log(JSON.stringify(result));

From the command line

$ mark client constant

As data, in a program

{ "$proc": ["client", "constant"], "input": { "value": "<value>" } }

Input

FieldTypeRequired
valueunknownyes

Output

The schema does not list fields (any).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "value": {
        "description": "The value"
      }
    },
    "additionalProperties": {}
  },
  "output": {
    "description": "The constant value"
  }
}