scaffold_project
Generate a complete clearskies project with models and endpoints, providing full working application code.
Instructions
Generate a complete clearskies project with models and endpoints.
Returns the full file content for a working clearskies application.
Args:
project_name: The name of the project/application.
models: List of model definitions. Each dict has:
- name (str): Model class name in PascalCase
- columns (list[dict]): Column definitions (same format as generate_model)
- backend_type (str, optional): Backend type (default: "MemoryBackend")
- id_column_name (str, optional): Id column name (default: "id")
- url (str, optional): URL path for the REST API
- readable_column_names (list[str], optional): Readable columns
- writeable_column_names (list[str], optional): Writeable columns
- sortable_column_names (list[str], optional): Sortable columns
- searchable_column_names (list[str], optional): Searchable columns
- default_sort_column_name (str, optional): Default sort column
context_type: The context type to use (default: "WsgiRef").
endpoint_type: Endpoint type to use (default: "RestfulApi").
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": {
"project_name": "<project_name>",
"models": "<models>"
},
"name": "scaffold_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | ||
| context_type | No | WsgiRef | |
| project_name | Yes | ||
| endpoint_type | No | RestfulApi |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |