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
| Parameter | Type |
|---|---|
document | OpenApiDocument |
args? | OpenApiSliceArgs |
Returns
string