generate_pinia_store
Generate a Pinia store file with state, actions, and getters in a Nuxt 4 project. Specify store name, relative path, and optional module.
Instructions
Generate a Pinia store in the target Nuxt 4 codebase. Creates a new store file with state, actions, and getters.
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": {
"name": "<name>",
"relativePath": "<relativePath>"
},
"name": "generate_pinia_store"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the store (e.g., 'user', 'auth') | |
| relativePath | Yes | Relative path in target (e.g., 'stores/user.ts') | |
| module | No | Optional module name to prefix path (e.g., 'deals', 'tickets') | |
| targetPath | No | Optional absolute target path override | |
| stateProperties | No | Optional state properties to include | |
| actions | No | Optional actions to include | |
| getters | No | Optional getters to include |