Skip to content

TypeScript API / contentia/server/mcp / readApiSpec

Function: readApiSpec() ​

ts
function readApiSpec(document, args?): string;

Full read_api_spec answer: index when unfiltered, sliced document otherwise. x-slice records what was left out, so a model that filtered too narrowly can tell the difference between "not in the API" and "not in this slice".

Parameters ​

ParameterType
documentOpenApiDocument
args?OpenApiSliceArgs

Returns ​

string