Run a risk-classified Laravel Artisan command
laravel_run_artisanExecute Laravel Artisan commands safely by using a risk classifier that requires explicit write approval for unknown custom commands unless pre-configured as read-only.
Instructions
Runs built-in or project-specific Artisan commands through a risk classifier. Unknown custom commands require explicit write approval unless listed as read-only in the project configuration.
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": "<project>",
"command": "<command>"
},
"name": "laravel_run_artisan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional project-relative working directory. When omitted, the tool auto-detects the relevant app root. | |
| command | Yes | ||
| options | No | ||
| project | Yes | Project key from list_projects. | |
| arguments | No | ||
| outputMode | No | full | |
| confirmWrite | No | ||
| timeoutSeconds | No |