generate_pinia_store
Generate a Pinia store (Composition API style) with state, getters, actions, and optional persistence
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": {
"storeName": "<storeName>",
"stateFields": "<stateFields>"
},
"name": "generate_pinia_store"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeName | Yes | Store name (e.g. useUserStore, useCartStore) | |
| apiBaseUrl | No | Base URL for API calls in actions | |
| stateFields | Yes | Comma-separated state field names | |
| withActions | No | Include async API action examples | |
| withPersist | No | Add pinia-plugin-persistedstate |