cs_scaffold
Generates source files and directory structures by category—infrastructure, routing, or locations—to scaffold Contentstack Marketplace app code after manifest creation.
Instructions
Steps 6a-6c of the create workflow. Generates source files by category with directory structure. Call 3 times (infrastructure → routing → locations) after cs_manifest. Read cs://patterns before calling. Input: { spec: object, category: 'infrastructure'|'routing'|'locations' } Output: { category, directories: string[], files: [{ path, content }] } Agent MUST create all directories first, then write files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec": "<spec>",
"category": "<category>"
},
"name": "cs_scaffold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | Structured app specification (same object passed to cs_plan and cs_manifest). | |
| category | Yes | File category to generate. Call 3 times: infrastructure → routing → locations |