Changelog
0.9.0-beta.10 - 2026-11-13
An app split into optional modules can now give each module its own discovery group (discovery.groups), with its own snapshot and TypeScript file, so actions:check passes with or without the module installed and an uninstalled module adds no action, route or tool. Nothing changes for an app that sets no group.
Added
- Discovery groups, for optional modules.
discovery.groupssplits discovery by owner, such ascoreand each module: a group lists its ownpathsandclasses, owns its ownsnapshotandtypescriptfile, and may be markedoptional. A group none of whose paths exists is not installed, so it adds no action, agent, route, agent tool or MCP tool, even for classes it lists, and its files are neither written nor checked; a required group that is missing failsactions:checkandactions:typescriptinstead.actions:check --updatewrites each installed group's snapshot from its own scan andactions:checkcompares each one, so the check passes with or without a module;actions:typescriptwrites each group's file with only its own actions, each importing only@agentic-actions/client. Both commands take--groupto narrow them. The manifest records which groups were installed, so one written before a module was added or removed is ignored. A group's paths and outputs must stay inside the base path: a..segment, an absolute path outside it, a root or an output directory that is a symbolic link out of it, an output that is itself a symbolic link, an output that is not a.jsonsnapshot or.tsfile, an unknown key, two groups writing one file or one class in two groups throwsMisconfiguredDiscoveryfromactions:cache, fails the Discovery row ofactions:check, and on a web request nominates no action at all. Exposure, the surface switches,shouldRegister(),authorize(), toolsets and confirmations are unchanged, and an app that sets no group writes byte for byte the files it wrote before (optional modules).
Changed
- The docs no longer promise that a hand-written tool which throws ends the turn. Its row still shows
failedwith "Couldn't finish" and its exception still never reaches the browser; whether the turn then ends or the model carries on depends on the laravel/ai version. An action tool answers the model with its fixed failed sentence, as before. The MCP route also keeps whichever middleware laravel/mcp adds of its own, such as an origin check, ahead ofmcp.middleware.
0.9.0-beta.9 - 2026-11-07
This version requires Laravel 12.69+ or 13.30+, the first versions of each line with no published security advisory, so update Laravel first (see Upgrading). An MCP request with a member of the wrong JSON type now answers invalid params instead of an internal error.
Changed
- The package now requires Laravel 12.69+ or 13.30+, the first versions of each line with no published security advisory. Composer will not install this version on an older Laravel. See Upgrading.
Fixed
- An MCP request with a member of the wrong JSON type answers invalid params. A tool or prompt
name, a resourceurior acursorthat is not a string, or aper_pagethat is not an integer, now gets-32602naming the member, with nothing reported to the app's error tracker. Most of them answered a generic-32603and were reported, and a number as a tool name answeredTool [7] not found.
Upgrading
- Update Laravel first. Run
composer update laravel/frameworkto reach 12.69 or 13.30 or later, then update this package. A fullcomposer updatealso brings in the current versions of the framework's own dependencies.
0.9.0-beta.8 - 2026-11-07
The MCP server now builds tools only for the methods that read them, so ping, initialize and a tools/call no longer pay for the whole catalog on every request. Nothing changes for an MCP client: a tool the caller may not list is still not found.
Changed
- The MCP server builds tools only for the methods that read them.
tools/listbuilds every listed tool as before,tools/callbuilds only the tool it names, through the same listing checks (so a tool the caller may not list, or one with a forbidden key, is still not found), andping,initializeand every other method no longer read the tenant, check membership or touch the catalog. The listing itself runs the exposure checks before the forbidden-keys check, so an advertised schema is built only for the actions the caller may list. What each method answers is unchanged.
0.9.0-beta.7 - 2026-10-31
A token API can now serve its Read actions over GET, with an ETag and 304s (Actions::routes(reads: 'get')), keep a mount to some actions (only and except), and give actions REST-style routes such as GET posts/{post} that run the same pipeline (#[Rest] and Actions::rest()), with Actions::restRoutes() describing them for an OpenAPI document. A generated route never answers GET to a browser session: a link on another site gets 405. Nothing changes for an app that does not opt in.
Added
- Reads over GET, on the mounts that ask for it.
Actions::routes(reads: 'get')lets each Read's route answerGETandHEADas well asPOST, at the same URL, with the query string as the input; every other effect staysPOSTonly, and aGETto it answers 405. The defaults are unchanged: every generated route is stillPOSTonly. It is for a token group: sinceGETskips the CSRF check and a link on another site sends aSameSite=Laxcookie, a generated route answersGETandHEADwith 405 to a request that carries a session or whose guard keeps one, andactions:checkfails aGETroute whose group starts a session (Sanctum's stateful middleware included) or authenticates with a session guard or HTTP basic auth (reads over GET). - Conditional answers for a Read over GET. The answer to
GETandHEADcarries a weakETagover its body,Cache-Control: private, no-cache(orprivate, max-age=…with the newroutes.max_age) andVary: Authorization, Accept-Language, and is a 304 without a body whenIf-None-Matchnames the tag. The tag is built after every check, so a refused caller gets their refusal. APOSTanswers as before. onlyandexceptonActions::routes(). Each receives the action's exposure entry and keeps (only) or drops (except) the action on that mount, such as a token API that serves Reads only. A filter only narrows what#[Expose]opens (which actions a mount serves).- REST-style routes mapped onto actions.
#[Rest('GET', 'posts/{post}', bind: ['post' => 'post_id'])]gives an action a resource route, repeatable for an alias, andActions::rest(tenant: …, only: …, except: …)registers those routes inside your group, named{group name}rest.{action}. Each route runs the generated route's pipeline (exposure, token abilities, tenant and membership,authorize(), validation, events, the output schema), Precognition included. A path parameter fills its input key and wins over the query and the body, and a request that sends the key there too is refused with 422. A success answers 201 with an optionalLocationforcreated: true, 204 for an action that declares no output, and 200 otherwise.actions:check's new REST row holdsGETto Reads,DELETEto Destructive actions andPOST,PUTandPATCHto the rest, and fails a path parameterschema()lacks, a duplicate method and path, and abind,createdorlocationthat cannot work.Actions::restRoutes()describes each route (method, path, parameters, JSON Schema input and output, effect, ability, status) for an OpenAPI document, andactions:typescriptexports each one by its route name with its method and path (a public REST API). actions:checkfails two routes that share a name when one of them is the package's, such as twoActions::routes()groups without their own name prefix, whichroute:cacherefuses.- The npm client calls a GET definition.
Methodgains'get':callAction()sends the input as the query string in PHP's bracket form, with no body,Idempotency-KeyorX-XSRF-TOKEN, and refuses a file.actions:typescriptexports a Read whose route answersGETwithmethod: 'get'(callAction()). A HEAD definition still throws.
Changed
- A Read's answer to GET or HEAD on a route you wrote yourself is conditional too: it gains the
ETag,Cache-Control: private, no-cacheandVaryheaders above, and answers 304 to a matchingIf-None-Match. actions:checkno longer fails every web-exposed action without a cached route, since a mount'sonlyorexcept, or a REST-only mount, may leave one out: with routes cached, it fails one only when the action's file changed after the cache was written.
0.9.0-beta.6 - 2026-10-14
An app can now decide, per action and per context, what a model may do alone: run a call without a card, ask for a confirmation even on a Write, or refuse it with the app's own sentence (GovernsModelCalls). An agent that cannot pause, such as one a scheduled job prompts, can record the calls that wait for a confirmation as proposals for a person to review, instead of having them refused (ProposesCalls).
Added
GovernsModelCalls: the app's say over what a model may do alone. Bind an implementation and the package asks it for every model-driven call (agent, MCP, a queued run a model started) and answersModelCallRule::run(),confirm($rule)orrefuse($sentence), or null for its own rule.confirm()makes any call, a Write included, wait for a card on the agent door, with the rule asruleon thedata-approvalpart (and in the claim's binding); where nobody can confirm (MCP, an agent that cannot pause) the call is refused.refuse()refuses with the app's sentence and keeps the action listed so the model can say why.run()lifts a Destructive or External call's card on the agent door only: MCP still never serves one, and a queued run still needs its card. A policy that throws is reported and refuses. The card of a confirmed Read or Write call saysapproval.writeorapproval.readunless the action has its ownapprovalReason(), and the npm client'sApprovalCardDatadeclaresruleand takesreadandwriteas itseffect(your app's rules).ProposesCalls: an agent that cannot pause proposes instead of being refused. An agent that does not store its conversations and implements it is offered the actions that wait for a confirmation (Destructive, External, or confirmed by the app's rule). Each call passes admission, both authorize steps and validation as a card would, then the agent'spropose(Proposal $proposal)receives what the card would show with the model's arguments, and the model reads that it was proposed (model.proposed, or the sentencepropose()returns). Nothing runs. A refused call is still refused, and a call the app's rule runs still runs.actions:checkno longer warns about such an agent for those actions (agents that cannot pause).
0.9.0-beta.5 - 2026-10-14
PHPStan now reads an action's run() as what its handle() returns. On Postgres, a connection's client() relation works inside a query, and the consent route no longer answers a malformed client_id with a 500. A nullable choice lists null among its values in what an agent is offered, so a model can leave it empty.
Upgrading
On Postgres, give
agentic_mcp_connections.client_idthe type of Passport's client key. The published migration made it a string, which Postgres refuses to compare with Passport's uuid client ids, so a query that compares the two columns failed there (see Fixed). A new install gets the right type. An app that already ran the migration on Postgres adds a migration of its own, on Passport's connection:phpSchema::table('agentic_mcp_connections', function (Blueprint $table) { $table->uuid('client_id')->using('client_id::uuid')->change(); });With
Passport::$clientUuidsoff, use$table->unsignedBigInteger('client_id')->using('client_id::bigint')->change()instead. MySQL, MariaDB and SQLite compare the two types already and need nothing.
Added
- PHPStan reads
run()as whathandle()returns.run()is declaredmixed, so PHPStan checked nothing onCreatePost::run(...)below level 9 and failed every use of it from level 9. The package now shipsextension.neon, a PHPStan 2 extension that types the call as the action'shandle()return type (nullfor avoidone), and keepsmixedfor ahandle()without one. phpstan/extension-installer loads it; without it, addvendor/agentic-actions/laravel/extension.neonto yourphpstan.neon's includes (PHPStan).
Fixed
- A connection's
client()relation works inside a query on Postgres.whereHas('client'),has('client'), a join on the two columns or a subquery such aswhereIn('id', McpConnection::query()->select('client_id'))failed with "operator does not exist: character varying = uuid", while eager loading worked; MySQL, MariaDB and SQLite never showed it. Theagentic_mcp_connectionsmigration now givesclient_idthe type of Passport's client key: a uuid (Passport's default), an unsigned big integer for incrementing ids, a string for any other key. See Upgrading for an existing install. - The consent route answers a
client_idno client can have without a 500 on Postgres. An authorization request for a package URL whoseclient_idis not a uuid, such as?client_id=abc, failed the query that loads the client and answered 500. The package now finds the client through Passport's client repository, which turns such an id away, and asks the connections table only about a client Passport finds. - A nullable choice lists
nullamong its values in what an agent is offered, at any depth (object properties, list items, anyOf branches): a strict tool schema held a model to the enum, so it had to pick a value for a choice it meant to leave empty.schema()itself, and so the route, the CLI and TypeScript, is unchanged, and a choice that already listsnullkeeps one. An app that addednullto a nullable enum by hand can drop it.
0.9.0-beta.4 - 2026-10-07
An authorize() may run before and after the input, a Read may add its own missing rows in initialize(), an agent may defer the toolsets it needs only sometimes, a confirmation can bind what its card cannot show, code an action calls can read ActionContext::current(), a measure's where() takes an operator, and a run of capitals stays one word in a derived name. A dataset whose declaration throws no longer takes an agent's or MCP client's other tools down, and an action whose schema() takes a file is no longer offered to agents.
Upgrading
- An
authorize()whoseValidatedInputis nullable (?ValidatedInput $inputorValidatedInput $input = null) is now also called before the input is read, with null, including when an agent's or MCP client's tool list is built. If yours assumed the input is always there, make that call check the caller: while$inputis null, refuse everyone who may not use the action, as a role or permission check does, and check the record once the input is there. Returning true for a null input checks no one: every caller the earlier steps let through then sees the tool and, on an action withagentSchema(), reachesfromAgent(), whichactions:check's Order row no longer reports. Or make the parameter required (ValidatedInput $input) to keep it running after validation only. - An
authorize()whose input is typed with a subclass ofValidatedInput(?PostInput $input = null) now fails every call with aTypeError, where 0.9.0-beta.3 ran it after validation with null. Type the parameterValidatedInput, or a contract it implements such asValidatedData. - A measure's
where()names its second parameter$operator. A call that names the value, such as->where('status', value: 'published'), now throwsArgumentCountError: pass the value by position,->where('status', 'published'). - A measure's three-argument
where()takes=,!=,<>,<,<=,>and>=only. Any other operator, such aslike,ilikeor<=>, is now refused with anInvalidArgumentExceptionwhen the dataset is declared, where before it answered wrong numbers (see Fixed). - Fix such calls, and run
php artisan actions:check, before you deploy. A dataset whose declaration is refused is left out of every agent's and MCP client's tools, and reported at most once an hour; your tests and local requests throwMisconfiguredExposurenaming it (see Fixed).actions:checkfails on both calls above. - An action whose
schema()takes a file is no longer offered to agents or MCP clients when itsagentSchema()leaves the file out. Every call to such a tool failed (see Fixed). Listing it now throwsMisconfiguredExposurein your tests and local requests, andactions:checkfails it. Keep the upload on the web with#[Expose(web: true)], and give agents another action without the file, as the File uploads recipe shows. - An action without
$namewhose class name has a run of capitals gets a new name. A run of capitals is now one word:ImportCSVFileisimport-csv-file(wasimport-c-s-v-file),SendSMSissend-smsandGetUserIDisget-user-id. Every other class keeps its name,CreatePostandCreateAPostincluded, and so does every class that sets$name. The route and its name move with the name (POST /actions/import-csv-file,actions.import-csv-file), and so do theactions:runname, the TypeScript export and its types (importCsvFile,ImportCsvFileInput), the agent and MCP tool name, the action's key inactions.exposure.jsonand theactionof the events and stream parts; a table kept under the old name no longer shows after a reload.actions:checkfails its Snapshot row until you runphp artisan actions:check --update, and its Names row warns about each such action with the line that keeps its old name, such asprotected string $name = 'import-c-s-v-file';. To take the new name, update what calls the action, runphp artisan actions:typescript, thenphp artisan actions:check --update, which names each action it renamed. Two classes that now derive one name, such asExportCSVandExportCsv, throwDuplicateActionName: set$nameon one. Actiongainsprotected array $initializes, empty by default. Rename a property of your own by that name: the package reads it as the tables a Read'sinitialize()may add rows to,actions:checkfails it on any other action, and PHP refuses one that is not typedarray. Aninitialize()method of your own is never called unless the class lists tables in$initializes, andactions:checkwarns about it without failing.agents.max_tools_per_toolsetis nowagents.max_tools, and it counts per agent. The limit counted each toolset on its own, so an agent could load several toolsets that each stayed under it, and the model read all of their tools on every step. It now counts the action tools one agent loads, each once:actions:checkwarns about an agent whose#[UseToolset]toolsets together hold more actions than the limit, andassertAgentTools()fails any agent whosetools()returns more action tools at its top level for the person it is built for, with or without#[UseToolset]. Give the agent only the toolsets its job needs, move the ones it needs only sometimes to#[DeferToolset](see Added), or raise the limit. A published config that still setsagents.max_tools_per_toolsetkeeps its value, read asagents.max_tools; rename the key. The old key is read only from the published config, when the package registers: a test that sets it withconfig([...])now changes nothing, so setagents.max_toolsthere, and a config cache built before the upgrade gives the default of 20 untilphp artisan config:cache(oroptimize) runs again.assertAgentTools()looks for an agent's#[UseToolset]action tools by name. It passed an agent onInteractsWithActionswhosetools()returned any action tool; it now needs one of those its#[UseToolset]toolsets give the person, so atools()that returns only the actions of toolsets the attribute does not name, built withActions::tools(), now fails. Name those toolsets in#[UseToolset], or return$this->actionTools()fromtools().
Added
- An
authorize()whoseValidatedInputmay be null runs before and after the input.authorize(ActionContext $context, ?ValidatedInput $input = null)is called first before any input is read, with null (so the tool list of an agent or MCP client leaves the action out for a person it refuses), then after validation with the input. Until now anauthorize()that took input ran only on the call, so an action that checked a role and a record in oneauthorize()was listed to people it would always refuse.actions:listshows the timing, andactions:check's Order row passes such an action withoutshouldRegister(). Anauthorize()whoseValidatedInputis required runs as before. approvalBinding(): what a person confirms without reading it on the card. A card shows at most eight rows of 200 characters, so a long body or a full recipient list could change between the card and the run (another session editing the draft) while the card still read the same, and the call ran with content the person never confirmed. An action now returns those values fromapprovalBinding(ActionContext $context, ValidatedInput $input); they are never shown, but they join the confirmation's fingerprint, and a call whose bound values changed is refused like one whose card would read otherwise. They are strings, numbers, booleans, null and arrays of them, with anHtmlStringor anotherStringableread as its text, and a backed enum as its value; a model or any other object gives no card, and the mistake is reported, so no value is bound by JSON that leaves part of it out. An action without it keeps the same fingerprint as before.ActionContext::current(): the context of the action running now. Code an action calls without handing it the context (a model event, an observer, a service) can now read who is calling and from which surface, such as for a change log that records whether a change came from the web, an agent, MCP or a queued run. Inside a nested run it is the innermost one; outside any run it is null.- A measure's
where()takes an operator and null.Measure::count('closed', __('Closed'))->where('closed_at', '!=', null)orMeasure::sum('large', __('Large'), 'amount')->where('amount', '>=', 1000): three arguments name the operator (=,!=,<>,<,<=,>,>=), and null compares as "is null" or "is not null". Two arguments still mean equals. actions:check --updatenames the actions it renamed. When the snapshot it writes lists a class under another name than the committed file did, it prints each old and new name. The rows that run after it read the new file, so this line is where a rename shows on that run.- A Read can add its own missing rows in
initialize(). A Read that lists tables inprotected array $initializeshasinitialize(ActionContext $context[, ValidatedInput $input], ...$services)called after every check (the token, membership, bothauthorize()steps, validation and a form's claim) and right beforehandle(), never while a tool list, a card or a form is built. Inside it the Read guard allows a write only when it adds rows to those tables, besides whathandle()may already send, sofirstOrCreate()can make a team's inbound address or a post's share link the first time anyone reads it, while an update, a delete, a replace or an upsert, a write to any other table, and every write inhandle()are refused as before. Every caller still sees a Read: a token with onlyactions:reador a member whose membership answers only for a Read may cause the insert, MCP keepsreadOnlyHint, a model reads "Found." above the output, and nothing reaches the change feed. Until now such a Read had to be declared a Write, which changed all of that, or list its table inreads.writable_tables, which lets every Read update and delete its rows.actions:listshows the tables, the snapshot row of an action that lists any gainsinitializes, andactions:check's new Initialize row fails$initializeson an action that is not a Read, on a dataset or without a publicinitialize(). #[DeferToolset]: toolsets an agent finds when it needs them.#[UseToolset('posts')]with#[DeferToolset('reports', 'settings')]loads the actions ofpostson every step, and sends those ofreportsandsettingsin one laravel/ai tool-search group, before the loaded ones, which a provider that searches tools holds back until the model searches: Anthropic their whole definitions, OpenAI (and Azure OpenAI, which laravel/ai sends the same way) their input schemas, while the model still reads their names and descriptions. On OpenAI, deferring needs gpt-5.4 or later and response storage on: on an older model, or with storage off, every request that carries the group fails, so do not defer on such an agent. They are the same action tools: they wait for the person's confirmation or answer, and a reload brings back their cards, forms and tables. Deferred toolsets do not count towardagents.max_tools, an action that a loaded toolset holds too is loaded, and an agent with atools()of its own builds the group fromdeferredActionTools(). An agent that carries laravel/ai's#[CacheToolDefinitions]sends a person who gets none of its loaded actions the deferred ones as ordinary tools, so the cache mark never lands on a deferred tool.actions:checkfails a#[DeferToolset]toolset no action joins, warns about a toolset both attributes name, and, in its new Tool search row, about an agent that carries#[CacheToolDefinitions]but loads no toolset, which therefore never defers.actions.exposure.jsonrecords both lists of an agent that defers toolsets, andactions:listmarks them. Deferring needs laravel/ai 1.1: with 1.0, thetools()ofInteractsWithActionssends the deferred toolsets as ordinary tools, whichassertAgentTools()then counts, a tool-search group an agent's owntools()builds fails on a provider that does not search tools, andactions:checksays so.
Fixed
- An
authorize()input typed with a subclass ofValidatedInputfails closed. The input is passed by the parameter's name, so a parameter such as?PostInput $input = nullfails the call with aTypeErrorinstead of ever receiving its default null after validation. Type itValidatedInput, or?ValidatedInputto run before and after the input. - An
authorize()input typed with a contractValidatedInputimplements, or a union that holds it, gets the input.?ValidatedData $input = nullorValidatedInput|array|null $input = nullwas read as taking no input, so it ran once before validation with null and never saw the record. It now runs before and after the input, as?ValidatedInputdoes. - A measure's three-argument
where()applies its operator. It compared the column with the operator string, so->where('status', '!=', 'draft')counted only the rows whosestatusis'!=', usually none, with no error; on Postgres a numeric column, as in->where('amount', '>=', 1000), failed the query instead. It now applies the operator, and the value after it may be aStringablesuch as a date, also in a file with strict types. - A dataset whose declaration throws no longer takes the other tools down with it. The check that leaves out a tool agents cannot be offered read each action's input schema outside its guard, so a declaration refused as it is read, such as a measure's
where()withlikeor with a namedvalue:, failed every agent offered that dataset's toolset and every MCP request on the URL that lists it. Only that dataset is now left out, as a tool with a forbidden key is: it is reported at most once an hour per class, and your tests and local requests throwMisconfiguredExposurenaming it. A table whosecolumns()throws anything other than anInvalidArgumentExceptionis left out the same way, andactions:checkreports both in its Tables & datasets row, where such an error, like theArgumentCountErrorof a namedvalue:, stopped the command. The same holds for any action whoseschema(),agentSchema()oroutputSchema()throws as the catalog reads it: in your tests and locally its own exception now arrives asMisconfiguredExposure, with the original kept as the previous exception. - An action whose
schema()takes a file is never offered to agents or MCP clients. One whoseagentSchema()left the file out was listed, and every call to it failed withUnsupportedSchema, since a model's call is validated againstschema()too;actions:checkpassed it. It is now left out, as an action that offers agents the file is, andactions:checkfails it. Both messages now point at the File uploads recipe, where they suggested anagentSchema()without the file. - A derived name keeps a run of capitals as one word.
ImportCSVFilewasimport-c-s-v-fileas a route, tool and CLI name,importCSVFilein TypeScript (cSVExportforCSVExport) and "Import C S V File" as an MCP tool's title; it is nowimport-csv-file,importCsvFileand "Import Csv File". A word with a capital inside, such as OAuth, still splits (SyncOAuthTokenissync-o-auth-token), and so does a plural run (SendSMSsissend-sm-ss): set$name, or write the word as one in the class name (SyncOauthToken). - Action tools inside a laravel/ai tool-search group keep their confirmations, forms and reloads. The package looked for an agent's action tools at the top level of its
tools()only. For an agent that returns them inside aToolSearch,ChatRequestread the person's answer to a form as no longer waiting and answered 409, and took an approval sent without the form's answer as a confirmation, so the call ran with the model's own arguments once they passed the action's rules;Transcript::forUseChat()brought back no waiting card or form and none of the tables shown; andtoContainActionTool()found none of them. Each now looks inside the group too, asassertAgentTools()already did.
Documentation
- Two new recipes: File uploads, a CSV taken by an action from
schema()through a Blade form,callAction()with aFileand a token client, and why agents and MCP clients are never offered such an action; and Your own jobs, which runs an action for each line of that file withrun()andActionContext::http($user, $tenant, $locale), imports nothing for a person or team deleted since the upload and removes the file either way, with what each call checks and what it does not, and whendispatch()orActionContext::system()fits instead. - Concepts says
ActionContext::console(),mcp()andqueued()are internal. Security says a job of your own keeps neither the token limits nor the model origin of whoever queued it, a queued run included, and, with Concepts, that a queued run passes them only to the actions it queues withdispatch(). Troubleshooting names every caller that takes a file, and which file fieldsactions:checkfinds. - The Boost guideline and skill give agents both answers: a job of your own that loops over work calls
run()withActionContext::http($user, $tenant, $locale), never the internalActionContext::queued(), and a file upload is abinaryfield on an action exposed with#[Expose(web: true)]. The skill links the two recipes. - Troubleshooting adds the Names warning for an action whose default name changed, with how to keep the old name or take the new one, and says that
ExportCSVandExportCsvnow share a name. - Concepts adds "A Read that creates its own state": create the state with its owner and backfill the rows that exist once, so no Read writes; use
$initializesfor state that should exist only once someone looks, with a unique key; and use a Write when the state turns something on, costs money, reaches outside the app or takes its values from the caller. A new recipe, State created the first time it is read, has the migration, the action and its test. Security says who may cause the insert and what the guarantee does not cover, and thatreads.writable_tablesopens a table to every Read and every statement. Troubleshooting has the two new messages, and MCP says such a Read keeps the Read's hints. - Many actions, in the copilot page: what
agents.max_toolsmeasures, toolsets named after the parts of your app and given to the agents that need them,#[DeferToolset]and the providers that search tools, a subset of toolsets per turn withActions::tools()for the providers that do not, and when to raise the limit. Concepts, Testing, Troubleshooting, the README and the Boost guideline and skill follow.
0.9.0-beta.3 - 2026-10-04
The npm client installed from the Composer package brings no packages of its own, the installer and actions:check point at agentic-actions.com and catch two wiring mistakes, and the documentation was rewritten after readers followed it in fresh apps.
Upgrading
- An app that installs the npm client from
vendor/("file:vendor/agentic-actions/laravel/js"): aftercomposer update, runnpm dedupeonce and commitpackage-lock.json. An older lock file keeps the copies ofai, Inertia or React that npm placed undervendor/agentic-actions/laravel/js/node_modules, andnpm installalone leaves them there;npm deduperemoves those your app's own versions satisfy. An app that installs the client from npm has nothing to change. - An app still on Inertia 2 that installs the client from
vendor/: npm now moves the app's@inertiajs/coreto 3 to meet the client's peer ranges, as an install from npm always did, andnpm dedupekeeps the Inertia 3 copies undervendor/agentic-actions/laravel/js/node_modules. Upgrade to Inertia 3, or, when the app uses only the client's root, addlegacy-peer-deps=trueto its.npmrc(see Requirements). assertAgentTools()can now fail a test that passed: it fails an agent whose owntools()returns none of the action tools its toolsets give the person. Delete thattools(), or return[...$this->actionTools(), ...]from it. It andactions:checkalso fail an agent onInteractsWithActionswith#[UseToolset]that does not implementLaravel\Ai\Contracts\HasTools: addimplements HasTools.
Fixed
- The npm client installed from
vendor/brings no packages of its own. The client'spackage.jsonlisted its build and test toolchain as devDependencies, which npm installs for a folder linked withfile:inside the app, so an app that installed the client fromvendor/agentic-actions/laravel/jsalso got second copies ofaiand Inertia under the client's folder: Vite could bundle a second@inertiajs/react, and the documented copilot panel failed to type-check against the app'sai. The client'spackage.jsonnow declares only its optional peers, so every import resolves to the app's own copy. The toolchain moved to a private npm workspace at the repository root, which the Composer package leaves out; contributors runnpm ciat the root instead ofnpm --prefix js ci. - The package points at the docs site, not at files the app does not have.
actions:install's next steps,actions:check's rows, the agent-schema refusals, the published config's comments and the Boost skill named paths such asdocs/mcp.md; each now names the page and heading on https://agentic-actions.com. A test checks that every page and heading they name exists. actions:install's tenancy step namestenant.scope. It listedtenant.model,tenant.parameterandtenant.membershiponly, so the first$context->find()answered 500 withMissingContext. It now names all four and says what the scope does, and the published config says thattenant.parameteristenantuntil you set it to your routes' segment, such asteam.actions:installstops suggestingmake:agentonce the app has an agent. It printed the step on every run with a copilot; it now leaves it out once a discovered agent carries#[UseToolset], as Setup describes.- An agent whose toolsets never reach the model is caught. A
tools()the class declares replaces the oneInteractsWithActionsgives it, as in a class started frommake:agent, so the agent ran with none of its toolsets' actions whileactions:checkandassertAgentTools()passed.assertAgentTools()now fails when the agent returns none of the action tools its toolsets give that person (an agent whose toolsets give that person none still passes), andactions:checkwarns in its Toolsets row about an agent on the trait whosetools()calls neither$this->actionTools(), a parent'stools()nor the trait'stools()under an alias. Both fail an agent on the trait that does not implementHasTools, which laravel/ai never asks for tools, andactions:checkwarns about an agent carrying#[UseToolset]withoutInteractsWithActions, which the attribute alone gives no tools. actions:checkwarns about a tenant model without a tenant scope. Withtenant.modelset and neithertenant.scopenorActions::scopeUsing(), the first$context->find()or tenant-scoped dataset threwMissingContextwhile every check passed. The Tenancy row now warns, naming both and https://agentic-actions.com/concepts#tenants. It is a warning, so an app that calls neither still passes.
Documentation
- Two new pages: Troubleshooting, each error message with its cause and its fix, and The TypeScript client, the generated file,
callAction(), its errors, touches anduseAction(). - Getting started works in a new app, and shows a plain agent with its imports and what an Idempotency-Key requires of each caller. Setup adds deploying and removing the package.
- Concepts shows a tenant model, its membership and scope classes, mounting the routes and a tenant-scoped action. MCP starts from an app without tenants and covers sign-in without a starter kit and a Connected apps page. Testing adds PHPUnit versions, queued runs and tokens in tests.
CONTRIBUTING.mdgives contributors the workflow, the CI cells and how to run them, with issue and pull request templates.
0.9.0-beta.2 - 2026-10-03
A turn laravel/ai queues keeps the limits of the token that queued it, which 0.9.0-beta.1 documented as a known limit.
Upgrading
- Nothing to change:
^0.9@betareaches this version, and the npm client's API is unchanged.
Fixed
- A turn laravel/ai queues keeps the limits of the token that queued it.
queue()andbroadcastOnQueue()build an agent's tools in the worker, where no guard holds the caller's token, so a read-only or tenant-bound token's queued turn ran its tools with the person's session access. The job now carries the token's grants, and the worker reads them while it runs the turn, as it already did for a queued run. A turn a session, the console or a guest queued runs as before.
0.9.0-beta.1 - 2026-10-03
The first public release. The package now installs from Packagist and its npm client from npm. Every version below installed only from a private repository, and its entry describes it as it was.
Upgrading
- Require
^0.9@beta, and remove the private VCS repository fromcomposer.jsonand its token fromauth.jsonorCOMPOSER_AUTH.^0.9@alphareaches this version too. - npm:
@agentic-actions/clientis published. Installing it fromfile:vendor/agentic-actions/laravel/jsstill works and keeps the two versions matched; from npm, install the same version as the Composer package. - A token bound to a tenant reaches only tenant-scoped actions, on every door, as it always did over MCP. Under a tenant's URL that also serves account-level actions (one
Actions::routes()group with notenant:argument), a token withtenant:{key}now gets a 404 for them, and an account-level action its call reaches in-process or on the queue is refused too. - A body never supplies the tenant's route parameter. On a route that names the tenant, a body key named like the tenant parameter (
teamfor{team}) is dropped, as every other route parameter already was. An action that read it fromrules()now sees it missing. - A
pattern()ends at the end of the value. It compiles with theDmodifier, so^[a-z]+$refuses"admin\n", as the JSON Schema it is advertised as does.
Fixed
- A generated web route caps an oversized list before validating it, as every other door already did: a list its rules cap reaches the validator with at most one item past the cap, so a long list for a
unique()list costs no more than a short one. - A table's caption keeps a filter value inside its quotes. A text value is plain text, as a card's is, and its quotation marks become apostrophes, so it cannot close its quotes or reorder the caption around it.
- The tables' refresh route answers an unknown tenant as it answers a foreign one, with the same JSON 404.
Documentation
- The README describes the public install, and
composer.jsonand the npm manifest name the repository, its issues and its security policy. docs/security.mdsays where a turn that laravel/ai queues stops: its actions run with the person's session access, not the limits of the token that started it.
0.9.0-alpha.1 - 2026-10-01
Tables and datasets: a Read action can show the person its rows as a table in the copilot, drawn by the page, while the model reads a short copy and says what stands out. A table is kept with its conversation for reloads and can be refreshed on the web. A dataset declares dimensions and measures over one model, and the model asks its questions within those names while the package writes the query. Also fixes for ActionContext::find() under a tenant scope that ends in an orWhere, and for an oversized list on any action. It installs only from the private repository, and the API can change before 0.9.0.
Upgrading
- Publish the tables' migration for a copilot.
php artisan actions:install --copilotpublishesagentic_views(the tagagentic-actions-views-migrations, beside laravel/ai's conversations table) and asks to migrate. Without it, tables still show live, nothing is kept, andactions:checkwarns in its Tables row once an agent is offered a table action. - Schedule the pruning of kept tables whose conversation is gone:
Schedule::command('model:prune', ['--model' => [\AgenticActions\Streaming\AgenticView::class]])->daily();. - A tenant scope's own conditions are now one group. Every condition your
tenant.scopeclass orscopeUsing()closure adds is wrapped in one group, so what comes after them narrows the tenant's rows. With anorWhereat the top level, or anorinside a raw condition,find($key)now returns the asked row or 404; before, it could return another row of the tenant. Any other scope reads the same rows; its SQL gains parentheses. _viewsis reserved. EveryActions::routes()group gains the refresh route_views/{view}, named{routes.name}_views, and an action named_viewsis refused, as_changesis.- npm: the root gains
viewsOf(),formatCell(),refreshView()and the typesTableColumn,TableDataandViewData, andActionDataPartsgainsview, so auseChatpanel types the new part./reactis unchanged. - The actions manifest stays version 5.
Added
- Tables. A Read action that implements
ShowsTabledeclarescolumns()withColumn(text, integer, number, money, percent, date, datetime and boolean), and returns its rows as a list, a collection or a query, which the package limits toviews.max_rows(500). The columns are its output allowlist, and every surface returns one shape:columns,rows,truncated,chart(the chart the rows' shape calls for: a line, a bar, a metric or none) andcaption.actions:runprints it as a table. - In the copilot, a table arrives as a
data-viewpart after its row, rebuilt from an allowlist, at most ten a turn. The model reads a compact copy: the count, the firstviews.model_rowsrows (20) with each text cut to 80 characters, the columns' keys, labels and descriptions, and an instruction to say what stands out instead of repeating the rows. Aprompt()turn and MCP read the whole output, since no person sees a table there. - Kept tables. With an agent whose conversations are stored, each table shown is kept in
agentic_viewswith its conversation.Transcript::forUseChat(..., agent: $agent)returns it in its message after a reload, while the agent's tools still offer its action, under the columns the action declares now. - Refresh. A kept table of an action exposed on the web can be refreshed by the person it was shown to:
POST {group}/actions/_views/{ref}runs the stored input again through the web door, with every check, and leaves the kept table as it was. A call that ran on fixed input, and an action whose class declares its own middleware, are not refreshable. - npm:
@agentic-actions/client/viewswith<ActionTable>: an unstyled table, cells written byIntlin the page's language, numbers aligned to the end, the caption, a note when the rows were cut, the time, and Refresh withonRefreshfor a chart beside it. - Datasets. A class that extends
AgenticActions\Datasets\Datasetnames a$modeland declaresdimensions()(one time dimension, text, and backed enums, on the model or through oneBelongsTo) andmeasures()(count, countDistinct, sum, avg, min, max, a conditional count or sum, money, and the ratio of two measures). The package generates its call, made only of the declared names: measures,byor agrain(day, week from Monday, month, quarter or year), a range in the dataset's zone (-30d,-8w, a date), filters,comparewith the previous period, sort and limit. It writes the query itself: in the tenant's scope asfind()applies it, with the conditionsscope()adds nested so they only narrow, every value a binding, times bucketed in the dataset's zone across its offset changes, and nulls last on every driver. The answer is a table with a caption that says what was asked, and a refresh asks for the same dates. SQLite, MySQL, MariaDB and Postgres are supported. The package sets no time limit: a statement timeout your connection raises answers with a fixed sentence, anddatasets.connectionruns datasets on a connection of their own, such as a read replica with a limit.actions:checkreports each declaration error, the columns a dataset reads againstagents.forbidden_output_keys, an unsupported driver, and a dataset connection with no time limit. Inside a tenant, a related row is read in the tenant's scope too, and$sharednames the relations whose rows every tenant shares.
Fixed
- An oversized list costs no more than a short one. On every action, a list its rules cap (
arrayorlistwithmax:N) is cut to one item past the cap before validation reads it. Validation reads at most one item past the cap, so an oversized list is refused as fast as one item too many. ActionContext::find()under a tenant scope with a top-levelor. A scope such as->where('team_id', $team->id)->orWhere('shared', true)madefind($key)readteam_id = ? or shared = ? and id = ?, which returned the tenant's first row for any key. The scope's conditions are now grouped, raw ones included.
0.8.0-alpha.2 - 2026-09-29
Fixes since 0.8.0-alpha.1: a form or confirmation for a call carrying a number that is not finite, a nested field's error in the npm client, and two passages of the docs. It installs only from the private repository, and the API can change before 0.8.0.
Upgrading
- Nothing to change.
^0.8@alphareaches this version; the actions manifest stays version 5.
Fixed
- A call whose arguments hold a number that is not finite. An argument a JSON body decodes to infinity or NaN (
1e400), even under a key agents are not offered, made the fingerprint of a form or a confirmation throw, so each such call reported an exception and got the refusal instead of the form. The fingerprint now holds those numbers, and the call is asked or refused as any other; validation still refuses the number when the call runs. - npm: a nested field's error is no longer a refusal.
useAction()read a 422 on a nested or list field, which Laravel keys by its dot path (author.name,tags.0), as one on a key the form does not hold, so the field's message also becamerefusal. A key now belongs to the form when the form holds its first segment; one it does not hold, such as a route parameter, is still a refusal. - docs.
docs/asking.mdsays that an action whoseauthorize()takesValidatedInputshows its form, withask()'s choices and defaults, before that check, anddocs/mcp.mdthatask()'s choices and defaults must stay stable between requests for an MCP answer to verify.
0.8.0-alpha.1 - 2026-09-29
Every surface now answers an input as the web does: an empty or blank value reads as null for every field, a number that is not finite is refused, and nullable list items and empty object items keep their place. It also carries the fixes of an outside review (a confirmed call that runs for over a minute, actions:install's exit code, output unions, TypeScript for a required key with a default) and of a fresh-install walkthrough of the console. It installs only from the private repository, and the API can change before 0.8.0.
Upgrading
- Require
^0.8@alpha.^0.7@alphadoes not reach this version. - Redeploy with
php artisan optimize, oractions:cache, as usual. The actions manifest stays version 5, so a 0.7 manifest still loads. - A
numberfield refuses a value that is not finite.INF,-INFandNAN, and a numeric string too large for a float such as"1e999", now fail validation with "must be a number" beforehandle(); before, they reached it. - A list whose items are nullable accepts null items.
$schema->array()->items($schema->string()->nullable())takes[null], and a nullable object item's required keys apply only when the item is not null; before, both failed validation. - An output union may answer differently. A scalar or a list under an
anyOfwhose first branch is an object now comes out as the value instead ofnullor{}, and so does a scalar or a list under a union of types ($schema->union([...])); a scalar under ananyOfor a union that declares only objects and lists comes out asnull. - An empty string, or one of only whitespace, reads as null for every field on every surface.
""or" "for any field, a string field included, now fails validation with the message the web gives, or becomes null where the field is nullable, fromrun(),actions:run, a queued run, an agent and MCP too, as it already did on the web behind Laravel'sTrimStringsandConvertEmptyStringsToNull. An action that accepted""from those callers, for an optional string, an enum of strings, or a string withmin(),pattern()orformat(), now gets null or a validation error, as web callers already did: declare the fieldnullable()to receive null. The same holds for a key onlyrules()declares, a unionrules()owns, and the values inside a list withoutitems()or an object without properties. A string of only whitespace forpassword,password_confirmationorcurrent_passwordat the top level stays as given, asTrimStringsleaves those keys; no other string is trimmed, and an omitted key stays omitted. - A turn that answers a confirmation holds its conversation for up to
approvals.ttl. A request that answers a confirmation, or sends new words to a turn waiting on one, now holds that conversation until its turn ends forapprovals.ttlseconds at most (1800 by default), where it was 60: keep your deploy's limit for a turn (request_terminate_timeout, Octane'smax_execution_time) under it. A request that dies holding it leaves the conversation answering 409 until then. The reservation is now a Laravel cache lock: the database store keeps it in thecache_lockstable, which Laravel's cache migration creates, and a store without locks answers 409 to every such request. actions:installexits with a failure when a step fails. A publish that fails or leaves nothing behind,install:apiormigratefailing now makes it exit 1 after "A step above failed", skipping the steps that need it and the migrations question; before, it exited 0. A script that ran it wheremigraterefuses, such as production without--force, now stops there. Declining one of its questions still exits 0.- npm: a definition cannot name GET. The client's
Methodtype is now'post' | 'put' | 'patch' | 'delete', soaction({ method: 'get', … })is a type error, andcallAction()throws before sending a GET or HEAD definition, which it could never send: the input travels as the body. Generated definitions use POST and are unaffected; call a GET route with Inertia orfetchdirectly. - A number field that fails its type no longer reports its bounds. An
integer()ornumber()withmin(),max()ormultipleOf()stops at its first failed rule, so a value of the wrong type gets only "must be an integer" or "must be a number", without a bound's message. - An empty string for a file field reads as null. In an app that skips
ConvertEmptyStringsToNull,""for aformat('binary')field now fails with "must be a file", or becomes null where the field is nullable, as it does with the middleware; before,handle()received"". - A list item that gives none of its object's keys keeps its place.
[{}, {"note": "A"}]for a list of objects whose keys are optional now reacheshandle()as[[], ["note" => "A"]]; before, the empty item was left out, and a list of only such items left the input altogether. An array with integer keys thatrules()owns keeps its own order. - Run
php artisan actions:typescriptafter updating. A required key with adefault()is now required in the generated types, as the server requires it: code that left one out gains a type error where the server answered 422. Lists are now writtenArray<T>instead ofT[], the same types, soactions:typescript --checkreports the file stale until it is regenerated.
Changed
- Empty and blank strings in text fields. The coercer reads
"", and a string of only whitespace, as null for string fields too, as it already did for other types, so every surface gives the web's answer: a nullable string receives null, any other string field the web's validation error, in object keys and list items too. Before, off the web a string field kept""(a nullable one became null on HTTP and the console only), and a string of spaces reachedhandle()for a field of any type, since Laravel's validator runs only the implicit rules on it. This applies to every key at every depth, whether the schema declares it or not, as the middleware does, so a key onlyrules()declares and the values of a union, a list withoutitems()or an object without properties follow it too; and an answer of only whitespace in an asked form is left out, as an empty one is. A string that holds anything else is never trimmed, and a blank value for the keysTrimStringsleaves alone (password,password_confirmationandcurrent_password, at the top level) stays as given. - Generated lists read
Array<T>.actions:typescriptwrites every list asArray<T>,Array<Json>withoutitems, in place ofT[]and(T)[]; the types are identical.
Fixed
- The package's consent page after an Inertia sign-in. In an Inertia app, a signed-out person signs in through the app's form, whose redirect back to the authorization URL is an Inertia visit; the package's page now answers it with Inertia's 409 and
X-Inertia-Location, so the browser loads the screen as a full page instead of showing it in Inertia's error dialog. An app with its own authorization view is unaffected. actions:listdescribes a Passport guard. Its Token guards section called one "unknown to the token reader". A Passport guard thatmcp.middlewarenames now reads "Passport: OAuth scopes (actions:read, actions:write), only on the MCP URL the person approved", and one it does not name "Passport: its tokens reach no action, since agentic-actions.mcp.middleware does not name this guard" (its cookie reads as a session, as Sanctum's does).actions:install's next steps. It suggestsphp artisan make:agentic-action CreatePostonly while no action is discovered, andphp artisan actions:check --updateonly while the snapshot is missing or stale, asactions:check's Snapshot row decides, or after that first action. While laravel/ai is missing,--copilotprints only the warning to require it, withoutmake:agentorActions::conversation().actions:checkwarns when no MCP token can sign anyone in.install:apionly asks for Sanctum's trait, and without it Sanctum's guard authenticates no bearer token, yet the check passed. The MCP guard row now warns when a Sanctum guard inmcp.middleware, or a Passport guard there without a Sanctum one, signs in a user model that uses neither Sanctum's nor Passport'sHasApiTokens, naming the model and the line to add inside it:use \Laravel\Sanctum\HasApiTokens;, which serves a Passport guard too, oruse \Laravel\Passport\HasApiTokens;for Passport alone. A guard without a provider, as Sanctum's is by default, reads theusersprovider's model.- docs/mcp.md. The Inertia consent snippet has the typed closure (
: Response,->toResponse(request())), and "When Claude cannot connect" names the MCP URL's 500 when Passport has no keys. - A number that is not finite no longer reaches
handle(). A JSON body's1e999decodes to infinity, which passed anumberfield's validation, ran the action and then failed to encode the response, a 500 after a Write had run. The coercer now converts a numeric string only when the result is finite, and anumberfield refuses infinity and NaN on every surface, list items included. - Null items in a list. A list declared with nullable items refused a null item, and a null object item failed its required keys, although the agent tools and TypeScript offered null. Validation now accepts them, and
handle()receives the list's items in their order. - TypeScript types for a required key with a default.
actions:typescriptwroteinteger()->default(1)->required()as an optional key, so TypeScript accepted a call the server refused as missing a required field. A key is now optional only when the schema does not require it; defaults stay metadata, never applied. - Output
anyOfkeeps a value its branches declare. The projector took the first branch whatever the value's shape, so with an object branch first a string came out asnulland a list as{}. It now picks the branch by shape: a list's array branch before an object branch, an object's object branch, and a scalar as it is; undeclared keys are still dropped at every depth. - An empty string never reaches
handle()for a typed field. Laravel's validator skips a field's type rules for"", so an optional integer given""in-process, on the command line, in a queued run or by a model reachedhandle()as"". The coercer now reads""as null for every field typed other than string, on every surface, so validation refuses it unless the field is nullable. - A bounded number that is not finite.
INForNAN(a JSON body's1e999) for anumber()withmultipleOf(),min()ormax()now gets a 422, not a 500: the bounds run only on a value that passed its type. - An empty string for a file. The empty-value rule left file fields out, so with Laravel's
ConvertEmptyStringsToNullskipped,""for a file reachedhandle(). It now reads as null there too. - Empty object items in a list. An item that gave none of its declared keys was left out of the list
handle()received, shifting it into an array with gaps, and a required list of such items was missing from the input. The item now keeps its place as an empty object, and only lists are put in order. - Output unions of types, and nested
anyOf. A key typed$schema->union(['object', 'string'])projected a string tonulland a list underunion(['object', 'array'])to{}, and a value under ananyOfnested in another came outnull. They now take the type the value's shape declares, and a scalar under a union of objects and lists only comes outnull, as it does for a key typed as an object. actions:checkon a cache store without locks. For theapc,sessionandstoragedrivers, the Cache store row now says that every answer is refused, which it is since a turn's reservation became a cache lock; it said an answer was only not single-use, or not one shared record.- A transcript on a page that paginates by cursor.
Transcript::forUseChat()read the request's?cursor=, so a page listing something else by cursor showed older messages, or failed with an exception when that cursor held noid. It now always gives the newest messages. - A confirmed call that runs for over a minute. The reservation of its turn lapsed after 60 seconds, so the same answer sent again meanwhile resumed the turn a second time: a package action still ran once, but the conversation stored a refusal as its result and the first stream ended with an error. A request whose reservation had lapsed could also end another request's. The reservation is now a cache lock that only its holder releases, lasting up to
approvals.ttl. actions:installreported success after a failed step. It ignored the exit codes ofvendor:publish,install:apiandmigrate, printed PUBLISHED for a publish that failed, and went on to publish the package's conversation table after laravel/ai's had failed and to run the migrations. A publish now reads PUBLISHED only when the thing is there afterwards, FAILED otherwise.actions:typescriptrefusesevalandargumentsas export names. An action or a named route exported as either produced a file TypeScript refuses in a module (TS1215); the command now names it and asks for another name, as for a reserved word.- npm:
callAction()on a GET definition. The client's types accepted a definition withmethod: 'get', butcallAction()always sends a body, sofetchrejected the call with the platform's own error.callAction()now refuses GET and HEAD with its own error before anything is sent, and TypeScript refuses a GET definition. - SECURITY.md. Its supported line still read 0.4.x; it now reads 0.8.x, and it names security@agentic-actions.com for private reports, beside GitHub's private vulnerability reporting.
0.7.0-alpha.1 - 2026-09-27
OAuth for remote MCP clients: a Claude custom connector, ChatGPT and other clients that sign in with OAuth 2.1 connect to the package's MCP server, on Laravel Passport and laravel/mcp's OAuth routes. The person approves one MCP URL on a consent screen, and the client's token reaches only that URL. It is optional: an app without Passport, or with Passport and no Passport guard in mcp.middleware, works exactly as before. It installs only from the private repository, and the API can change before 0.7.0.
Upgrading
- Require
^0.7@alpha.^0.6@alphadoes not reach this version. - Redeploy with
php artisan optimize, oractions:cache, as usual. The actions manifest stays version 5, so a 0.6 manifest still loads. - Nothing changes without a Passport guard in
mcp.middleware, even with Passport installed: no scopes, no consent view, no middleware on Passport's routes, and the same 401 header on the package's MCP paths. - With it (
['auth:sanctum,api', 'throttle:agentic-actions-mcp']), the 401 header on the package's MCP paths comes from the package and adds the path'sscope; Passport's scope list gainsactions:readandactions:write; the package's consent view becomes Passport's authorization view when the app has none; and every Passport guard joins the Token routes row ofactions:check, which fails an unscoped route on one whileMcp::oauthRoutes()is registered. - Text on cards, forms and the consent screen also loses U+200E, U+200F and U+061C, which now become spaces as the other direction controls do.
- Migrations are published file by file.
--tag=agentic-actions-migrationspublishes theagentic_conversationsmigration only; the newagentic_mcp_connectionsmigration has its own tag,agentic-actions-oauth-migrations, whichactions:install --mcppublishes only with OAuth on. actions:installdescribes MCP as "with Sanctum tokens or OAuth (Passport)", never offers Sanctum or its trait to an app whose user model uses Passport's trait, and prints the OAuth steps still missing. The Token routes sentence namesscope:… or scopes:…for a Passport guard. A test that pins these sentences needs the new ones.- npm. Nothing new in the client.
Added
- OAuth for the MCP server. On the package's MCP paths, the 401 challenge names the path's protected-resource metadata and scopes, and laravel/mcp's metadata lists the scopes the path's actions need. Every authorization naming a package MCP URL (the RFC 8707
resource) shows the consent screen, which names the app, the client, where its answer goes, the tenant and the abilities, and cannot be framed; the package's paths take only S256 PKCE, the path's scopes, clients limited to the authorization code and refresh grants with plain ASCII redirect addresses and no backslash, and tenants the person belongs to. Approving revokes the client's earlier tokens and codes for the person and records one connection per client and person, naming the URL and the scopes approved there; approving another URL moves it, and the Allow of a denied screen changes nothing. A Passport token then grants the read and write scopes it holds that the person approved, and the connection's tenant, on that URL only.AgenticActions\OAuth\Consenthands an app's own page the screen's data;AgenticActions\OAuth\McpConnection::for($user)lists a person's connections andrevoke()ends one. docs/mcp.md ("Connect Claude, ChatGPT and other remote clients (OAuth)"), docs/setup.md, docs/security.md, docs/recipes.md and the Boost skill. actions:check's OAuth row. It fails missing Passport keys, a Passport guard listed before Sanctum's, a token reader of the app's own beside OAuth connections and a route answering a package path's metadata first; it warns aboutMcp::oauthRoutes()without a Passport guard inmcp.middlewareand the reverse, a missingloginroute, access tokens that last more than a day, andmcp.redirect_domainsaccepting any site outside local and testing. The Tables row fails a missingagentic_mcp_connectionstable while OAuth is on.- The token reader knows Passport. Passport's cookie token reads as a session, and
describe()answerspassport, so no "unknown guard" notice is logged for it.
0.6.0-alpha.1 - 2026-09-26
Fields only a model must give, and asking over MCP: an action names the fields every model's call must give while the web may leave them out, and an action with $askForMissing now asks MCP clients that can show a form, as it asks in the app. It installs only from the private repository, and the API can change before 0.6.0.
Upgrading
- Require
^0.6@alpha.^0.5@alphadoes not reach this version. - Redeploy with
php artisan optimize, oractions:cache, as usual. The actions manifest stays version 5, so a 0.5 manifest still loads; rebuilding it brings the new reason for anagentSchema()action's skipped route. - Nothing changes until an action says so.
requiredForAgents()returns no fields by default. An action with$askForMissingthat is already on MCP now shows its form to a client on protocol 2026-07-28 that declares form elicitation, where that client got the refusal before; every other client still gets the refusal naming the fields. - The app's key. The MCP request state is encrypted with it. Every Laravel app has one; a test that posts to the MCP mount under Testbench sets
app.key. - npm. Nothing new in the client; update
@agentic-actions/clientwith the PHP package as usual.
Added
requiredForAgents(). An action names the fields a model's call must give, through the agent tools and MCP alike, where the route,run(),dispatch(), the CLI and TypeScript may still leave them out or null. Agents and MCP clients are offered them as required and not nullable, a model's call without one is refused naming it, whateversometimesrules()keeps for the web, and with$askForMissingthe form asks for them and marks them required. It takes the place ofrules()keyed on the surface plus aprepareForValidation()that fills in null, which gave the form no required marker. docs/asking.md ("Fields only a model must give").Asking over MCP. An action with
$askForMissingnow asks MCP clients that can show a form: a request on protocol 2026-07-28 whose_metadeclares form elicitation gets, for a call missing fields a form can hold, anInputRequiredResultwith oneelicitation/createrequest (the copilot's form in MCP's standard keys) and arequestStateencrypted and authenticated with the app's key, bound to the credential (the request's bearer token, whichever guard reads it), person, tenant, tool, arguments and form, forapprovals.ttlseconds. The retry with the answer runs the action once through every check, and the result names the filled fields, never the values. An answer the rules refuse gets the form again with the messages; decline and cancel run nothing; a state that does not verify gets JSON-RPC error -32602, and a stale or foreign one a fresh form. Every other client gets the refusal naming the fields, as before. The MCP Inspector 2.8.0's web page (modern protocol era) and@modelcontextprotocol/client2.1.0 show the form; its CLI, laravel/mcp's client and clients on theinitializehandshake get the refusal. docs/mcp.md ("Asking over MCP"), docs/asking.md, docs/security.md and the Boost skill.
Changed
- MCP answers
tools/callthrough the package's own handler (CallAction, a subclass of laravel/mcp'sCallTool). A client that does not declare form elicitation gets exactly the answer it got before. The MCP request state needs the app's key, which every Laravel app has; a test that posts to the MCP mount under Testbench setsapp.key. - The reason
actions:list,actions:checkandMisconfiguredExposuregive for anagentSchema()action's skipped route now says why (itsschema()holds whatfromAgent()builds, not what a form sends) and points torequiredForAgents()for agents that only need to give more fields than the web. The rule is unchanged. A test that pins the sentence needs the new one.
0.5.0-alpha.1 - 2026-09-26
Asking the person: when a model's call to a Read or Write action leaves fields out, the action can ask the person for them in a form in the chat, and runs once with their values; the model learns only which fields were filled. It also brings actions:install, a conversation per tenant and the fixes made since 0.4.0-alpha.1. It installs only from the private repository, and the API can change before 0.5.0.
Upgrading
- Redeploy with
php artisan optimize, oractions:cache. The actions manifest is version 5; a version-4 manifest is ignored, and every request scans, until it is rebuilt. - Nothing asks until an action says so.
$askForMissingis off by default, and a chat route that already passes the agent toChatRequest::from()needs nothing new. To ask, set it on a Read or Write action, optionally writeask(), and add the form to the page. - npm. Update
@agentic-actions/clientwith the PHP package. The page addselicitation(),<ElicitationForm>andanswerElicitation()(docs/asking.md#the-page). data-elicitationjoinsdata-actionanddata-approvalas a part type the package owns: a part of your own named so is dropped.- An app that published the language files adds the new lines, or publishes them again:
ask.phpis new, andmodel.phpgains four lines. actions:check's Approvals row now says the actions "wait on the person", and names asking actions too; its Cache store row says "Confirmations and forms" and warns for asking actions as for confirmed ones. A test that pins these sentences needs the new ones.- A new message sent during a Confirm. With the agent,
ChatRequest::from()now reserves a waiting turn for a new message as for an answer, so whichever request arrives second gets the 409 withstream.stalebefore any agent work. A page that sends both at once shows that sentence for the later one. - The Tables row.
actions:checknow warns when a feature in use lacks its tables, naming theactions:installflags that publish them. Warnings do not fail the command.
Added
- Asking the person. A Read or Write action with
protected bool $askForMissing = true;asks the person, in a form in the chat, for the fields a model's call left out or got wrong, instead of refusing the call. The form is MCP's form-mode elicitation ({mode, message, requestedSchema}), built on the server from the action's schema and an optionalask(Ask $ask, ActionContext $context), whoseAskbuilder sets the sentence, the fields always shown for review, choices, defaults and a textarea. A model's value opens as a field's default only when validation accepted it and it holds no direction override or isolate, and no control character but a tab, line feed or carriage return. The form holds text, numbers, dates, yes or no and choices; a call that also leaves out anything else, or a field that reads as a secret, is refused as before, naming the fields. Submit is checked against the action's own rules first (a Precognition request, errors by field), then runs the action once, as the person, with their values over the model's arguments and every check again; Decline and Not now run nothing. The model reads which fields were filled, never the values, which the conversation store never holds either. It pauses on the agents that can confirm a call, under the same single-use claim, reservation,approvals.ttland reload. Destructive and External actions never ask, and MCP clients get the refusal naming the fields, as before. - npm, for forms. The root gains
elicitation()and the standard's types (ElicitationField,ElicitationParams,ElicitResult,ElicitationData,WaitingElicitation);/reactgains<ElicitationForm>, which renders any MCP form with native controls;/ai-sdkgainsanswerElicitation(), and its transport sends the answer. - Checks, docs and Boost, for forms.
actions:check's Approvals row warns about an agent that never asks because it does not store its conversations, and fails a conversation store no agent can wait on. docs/asking.md ("Asking the person"), the guarantees in docs/security.md, a test in docs/testing.md, lines in docs/copilot.md, docs/concepts.md, docs/mcp.md and docs/setup.md, a line in the Boost guideline and a sixth task in its skill. php artisan actions:install. It asks which features the app uses (web routes, agents and a copilot, confirmations, MCP, tenants), publishes the config and the migrations those features need, runsinstall:apifor MCP when Sanctum is missing, prints the next steps the app has not taken yet, and asks before it runs the migrations it published. It publishes nothing twice. In CI, pass the features as flags with--no-interaction.- A conversation per tenant.
Actions::conversation($agent, $user, $tenant)keeps one laravel/ai conversation per person, agent class and tenant:id()finds it for the reload, andopen()starts it in laravel/ai's store the first time. The key is what the route passes, never an id from the request. Itsagentic_conversationstable comes from a migration published only on request (vendor:publish --tag=agentic-actions-migrations, oractions:install --copilot --tenancy). docs/copilot.md's multi-tenant recipe uses it. - The Tables row.
actions:checkwarns when a feature in use lacks its tables: agents that store their conversations without laravel/ai's tables, a publishedagentic_conversationsmigration that has not run, and MCP on thesanctumguard withoutpersonal_access_tokens. Each warning names theactions:installflags that publish them. - docs/setup.md: what the package depends on, and what each feature needs (packages, tables, routes, config, install flags).
Fixed
- Two answers to one confirmation sent at once. The second answer now gets the same 409 as a replay, before any agent work, so the stored conversation always holds the result of the call that ran. Before, the call still ran once, but the conversation could say it was not done.
ChatRequest::from()reserves the waiting turn in the default cache store,respond()holds it until the agent's stream ends, and a request that dies holding it frees it after 60 seconds. - A Confirm and a new message sent at once. With the agent,
ChatRequest::from()now reserves the waiting turn for a new message too, from a session or a token, so whichever request arrives first goes on and the other gets the same 409 before any agent work. - A
withwhose bracketed CTE name is more than one word (with [recent posts] as (…),[2024],[recent-posts]) runs in a Read instead of being refused, aswith [recent] as (…)already did. - On SQL Server, and on a driver the Read guard does not know, the guard refuses as unchecked a statement with a character past ASCII outside quotes, strings and comments, or a
--comment holding a line break other than a carriage return or line feed. SQL Server does not document which Unicode characters it reads as white space, so a Unicode space could hide a second statement. Quote such a name in brackets, as Laravel's grammar does. The guard also reads only ASCII white space between tokens now, whatever the locale. - Octane: chat turns streamed nothing. Under Octane on FrankenPHP, a turn streamed through
ActionsProtocolanswered 200 with an empty body and never ran.ActionsProtocolnow echoes and flushes each part itself, so rows arrive one tool at a time there as on PHP-FPM, and a closed tab still leaves the turn to finish and be stored. - Octane: a paused call showed no card. Under Octane, a turn that paused for a confirmation sent no card and kept no claim, so the person's Confirm ran nothing. The package now reads the cards it previewed from the current request's container when laravel/ai reports the pause.
0.4.0-alpha.1 - 2026-09-26
Confirmations: an agent may run a Destructive or External action only after the person confirms that one call, in the page, from their own session. It installs only from the private repository, and the API can change before 0.4.0.
Upgrading
- Redeploy with
php artisan optimize, oractions:cache. The actions manifest is version 4; a version-3 manifest is ignored, and every request scans, until it is rebuilt. - Nothing is offered to agents until you name a toolset. A bare
#[Expose]still keeps Destructive and External actions off agents, so no app's agent tools change on upgrade. To offer one, write#[Expose(agents: [...])], addapprovalReason()andapprovalSummary(), then runphp artisan actions:check --updateand review the diff ofactions.exposure.json. - The confirmation route passes the agent to
ChatRequest::from($request, $agent), returns throughrespond(), and passesmessageId: $chat->messageId()toActionsProtocol(docs/copilot.md#confirmations). A 0.3 route keeps working unchanged for Read and Write tools. - The reload passes the agent to
Transcript::forUseChat($conversationId, $user, agent: $agent)to bring a waiting card back. - npm. Update
@agentic-actions/clientwith the PHP package: the/ai-sdktransport now sends the person's answers, andactionsChat()sends them by itself once every waiting call has one. ActivityStatusgainsdeclined, and a row'seffectmay bedestructiveorexternal. Aswitchover either that must be exhaustive needs the new cases.#[Expose(agents: [...])]on a Destructive or External action is no longer an exposure error: its toolsets receive it.mcp: trueon one is still an error, now "MCP has no confirmation step", andactions:listshows the new reasons.- An app that published the language files adds the new lines, or publishes them again:
approval.phpis new, andmodel.php,activity.phpandstream.phpgain lines. - Confirmations are kept in the default cache store. Outside local development, use a database, redis, memcached or dynamodb store that every server shares;
actions:checkwarns about any other driver once an agent is offered a Destructive or External action.
Added
- Confirmations. A Destructive or External action whose
#[Expose]names a toolset reaches an agent whose conversations laravel/ai stores. Each call waits for the person: the chat shows a card, built on the server afterauthorize()allowed the call, fromAction::approvalReason()(one sentence) andAction::approvalSummary()(at most eight label ⇒ value rows, from the validated input and the record it names). The browser receives that sentence and those rows as plain text, never the call's arguments or the model's words. Confirm runs the call once, as the person who was asked, in their tenant, with the input the card described, and only while the card, built again just before the call runs, reads as the one they confirmed, so keep the summary free of values that change on their own, such as the time; Decline runs nothing. One step of the model asks about at most eight calls. MCP never serves these actions, and an agent cannot switch the confirmation off. - Single-use confirmations. Each paused call gets one claim in the default cache store, taken after both
authorize()steps and beforehandle(). A replayed answer, a second answer sent at once, another person's answer, a token and an answer afterapprovals.ttlseconds (a new config key, 1800 by default) run nothing. - Answers.
ChatRequest::from($request, $agent)reads, per waiting call, approve or decline and an optional reason, and nothing else, only from the session of the person the conversation belongs to. The model reads a decline reason as one quoted string.respond()answers 422 for an empty message and 409 with one sentence for an answer that is no longer waiting.ActionsProtocol(messageId:)continues the answered message. - The stream. A waiting call crosses as an input-less tool part and its approval request, followed by a
data-approvalcard; a resumed call settles with no output, and a declined one gets adeclinedrow.Transcript::forUseChat(..., agent:)restores a waiting card on reload, rebuilt from the record, while it still reads as the card first shown and can still be confirmed. - npm. The root gains
approvalCard()and theApprovalCardDataandWaitingApprovaltypes;/reactgains<ApprovalCard>;/ai-sdksends answers. - Checks.
actions:checkgains the Approvals row (a warning for an agent that is never offered its toolsets' confirmed actions, a failure for a conversation store that cannot hold them) and the Summary row (a failure for a confirmed agent action offered input withoutapprovalSummary(), or with anauthorize()that does not takeValidatedInput). The Cache store row also covers confirmations. - Rows. Default labels for the new effects: "Removing…" and "Removed", "Sending…" and "Sent".
- Languages, docs and Boost.
approval.phpand new lines inmodel.php,activity.phpandstream.php, in English and Arabic. docs/copilot.md gains "Confirmations", docs/security.md their guarantees, docs/testing.md a confirmation test, and the Boost skill a fifth task.
Changed
Ai\ActionToolimplements laravel/ai'sApprovable. The effect decides:withoutApproval()throws on a Destructive or External tool, andrequireApproval()throws on a Read or Write tool.Actions::tools($context, $toolsets)takes an optional third argument, the agent. Without it, Destructive and External actions are never offered.
0.3.0-alpha.1 - 2026-09-25
MCP, queued runs and the change feed. It installs only from the private repository, and the API can change before 0.3.0.
Upgrading
- Bare
#[Expose]Read and Write actions become MCP tools. A bare#[Expose]now allows MCP for every Read and Write action that has a description. MCP mounts as soon as the app has a token guard such as Sanctum's, sincemcp.pathdefaults tomcp/actions, and from then on each of those actions is a tool for every token that lists the matching ability:actions:readfor a Read,actions:writefor a Write. To keep an action off MCP, name its surfaces instead, for example#[Expose(web: true, agents: ['default'])]. Runphp artisan actions:check --updateand review the diff, since themcpfact of those actions changes inactions.exposure.json. - Nothing is mounted until the app has a token guard (
php artisan install:api), a path and an MCP-open action.AGENTIC_ACTIONS_MCP=false, or nullmcp.pathandmcp.tenant_path, keeps MCP closed. - The model rows of
actions:check(Model input, Model output, Ids, Order, Schema, HTTP-only) now cover MCP-exposed actions, also without laravel/ai, so they may report actions they skipped before. - Once a token guard and an MCP path are set, the mount looks for MCP-open actions at boot whenever routes are not cached. Every Artisan command, test run and uncached web request then loads the actions, also in an app that never calls
Actions::routes(), and a misconfigured action fails at boot in a local web request and in tests. - The actions manifest is version 3. A version-2 manifest is ignored, and the app scans, until
php artisan optimizeoractions:cacheruns again. - Each
Actions::routes()group gains the change feed's route, named_changesunder the group's name prefix. Two groups under the same name prefix (for example atenant: trueand atenant: falsegroup, both unnamed) now share a route name, whichroute:cacherefuses. Give each group its own->name()prefix. - The change feed is on by default, and each completed write makes one cache write. Set
feed.enabledto false in an app with no polling page. laravel/mcp^1.0 is now required. Its service provider is discovered: it registers its commands, loadsroutes/ai.phpwhen that file exists, adds one global middleware that acts only on 401 answers of routes that carry it, registers container callbacks and anmcpview namespace, adds a globalMcpfacade alias, and adds anmcp:usescope to Passport's scopes when Passport is installed. The package adds nothing global beyond its own mount.
Added
- MCP server. One laravel/mcp server at
mcp.path(defaultmcp/actions), and atmcp.tenant_pathfor tenant-scoped actions, mounted after every other route and never over one. Each MCP-exposed Read and Write action is a tool, listed for each request under the rules agents follow: forbidden keys never appear, arguments are cut to the advertised schema, andagentSchema()input goes throughfromAgent(). A call answers the sentence an agent reads, a refusal is an error result, and the hints follow the effect. Destructive and External actions are never listed or run. See docs/mcp.md. - MCP tokens and throttle. Any token guard named in
mcp.middleware(defaultauth:sanctum). Over MCP an ability counts only when the token lists it by name;*never counts and a session grants nothing. A token bound withtenant:{key}reaches only its tenant's path, and the tenant path serves only tenant-scoped actions. Each person getsmcp.per_minuterequests a minute, across all of their tokens and tenant URLs. - MCP handshakes. The
initializeexchange and the 2026-07-28 exchange both work on one URL. The server's instructions are a language line in English and Arabic (mcp.php). - Queued runs.
Action::dispatch($input, $context)queues the whole pipeline as the caller: actor, tenant, input, fixed input, locale, idempotency key and token grants, encrypted on the queue. Every check runs again in the worker. Whatever context the job's own code builds, its calls and the jobs it queues keep the caller's grants and tenant binding, and stay model-driven when a model queued the first job. While a Read's own code runs,dispatch()refuses an action that is not a Read, before anything is queued. - Change feed. Each completed write records the keys it touched, per tenant or per person, in the default cache store for
feed.windowseconds, and eachActions::routes()group gainsPOST …/actions/_changes. The feed sends keys only, and answers only a signed-in session. - Feed client.
createActionSync({ feed: { url, interval } })anduseActionSync({ feed })poll the feed while the page is visible and in use: every 15 seconds by default, never more than once a second, and paused after 10 minutes with no input. What writes made elsewhere touched is reloaded through the same path as a copilot row. - Rows in order.
messageSegments(message)gives a message's words and rows in the order they streamed, so the sentence a model writes before it calls a tool shows above its rows. The panel recipe in docs/copilot.md uses it. - Settled rows.
actionRows()andmessageSegments()take{ settled: true }, which shows a row stillrunningasended. Pass it for every message except the one the chat is streaming, so rows cut short by Stop, a broken stream or a deadline stop spinning. - Checks.
actions:checkgains the Abilities, MCP guard, MCP route, Token routes and Cache store rows, andactions:listshows where each action is served over MCP, or why it is not. - Boost and docs. The
agentic-actions-developmentBoost skill (add an action, wire an agent, add the copilot panel, expose actions over MCP) and four more guideline lines. docs/mcp.md walks through Sanctum tokens with the actions abilities and connecting Claude Code, Cursor and Claude Desktop.
Changed
- A refresh held for a dirty editor runs by itself 150 ms after the last dirty editor turns clean, and
waitingturns false, so the Refresh button goes away.useActionSync({ blocked })resumes the same way once its flag is false.resumeWhenClean: falsekeeps a held refresh until the next done row, the end of a turn orapply(), as before.createActionSync()cannot see its ownblocked()flag change, so callflush()when it clears.
Fixed
- The Read guard reads a statement as its connection's driver does. A backslash is a literal inside a SQLite or SQL Server string, so
like ? escape '\'runs in a Read there instead of failing as a write. - On Postgres the Read guard allows a statement only when it reads the same with
standard_conforming_stringson and off. A one-backslash string such aslike ? escape '\'fails as a statement the guard could not check; escape with another character, such asescape '!'. - On MySQL and MariaDB the Read guard also reads a statement as a server with
ANSI_QUOTESon reads it, so a batch can no longer hide from its readings on such a server. - On SQL Server the Read guard refuses a second statement in a Read's batch (T-SQL needs no semicolon between two), a batch whose first word SQL Server runs as a procedure, and a letter right after a number (
0x1truncate). - The Read guard ends a
--or#comment at a carriage return as well as at a line feed, on every driver, since Postgres ends a--comment at either. - A
withwhose CTE name is in brackets (with [recent] as (…)) runs in a Read instead of being refused. - A statement the Read guard cannot check (a quote or comment that does not close, an executable comment) fails with its own message, "A Read action sent a statement the Read guard could not check: [...]", instead of "A Read action tried to write".
actions:runreads an integer--as,--tenantor--key, as$this->artisan()passes one in a test. Before, the action ran without that user, tenant or key.useAction().validate()puts a 401, 403, 404, 409 or 423 onrefusal, asrun()does, and clears it when the next check starts. Before, those statuses left the check's promise rejected.editors,actionParts, the synccreateActionSync()returns and the result ofuseActionSync()declare their functions as properties, so destructuringapplyor passingsync.onParton no longer trips@typescript-eslint/unbound-method.
Documentation
- What hides an agent tool: only
shouldRegister()or anauthorize()without input. Role and permission checks belong in anauthorize()without input; row checks go inhandle()or an input-awareauthorize()(docs/concepts.md). - Installing the package from a local path or symlink needs Vite's
resolve.dedupeforreact,react-domand@inertiajs/*. - A recipe for
useAction()forms, and a note that routes mounted inside a group whose own middleware checks membership give a non-member that middleware's answer first. - docs/copilot.md now says that a turn which fails before the model finishes its first step stores nothing, so the person's words are gone after a reload.
0.2.0-alpha.1 - 2026-09-25
The copilot in the UI: live rows while an agent works, and the page following its writes. It installs only from the private repository, and the API can change before 0.2.0.
Added
- Chat stream.
Streaming\ActionsProtocolstreams an agent's turn in the UI message formatuseChatreads, built from an allowlist of parts. No tool part, argument, result, exception or provider text reaches the browser, and a failed turn ends with one fixed sentence. A closed tab never cuts a turn short. - Live rows. One
data-actionrow per tool call, sent when the tool starts and again when it finishes, with its status (running,done,refused,failedorended) and, on success, what it touched and a link. Label a row withAction::activityLabel(), let the page follow the link withAction::$followLink, and give a hand-written tool its row withContracts\DescribesActivityandStreaming\Activity::record(). - Chat input and reload.
ChatRequestreads only the newest message's text, up toagents.max_message_lengthcharacters (a new config key, 4000 by default); history comes only from the conversation store.Transcript::forUseChat()gives a reloaded chat the words of a conversation the store says is the user's. - Page context.
#[WithPageContext], wired withactionMiddleware(), tells the model the route name and component of the Inertia page that is open.actions:checkandassertAgentTools()fail an agent that carries it without Inertia or without the wiring. - npm. The root gains
actionRows(),createActionSync()andeditors;/inertiagainsinertiaApply();/reactgainsuseActionSync(),useActionEdits()and<ActionActivity>, under 3 KB gzipped; the new/ai-sdkentry hasactionsChat(),actionsTransport(),turnOutcome()andrefusalMessage(), withai7 as an optional peer. - Languages and docs.
activity.php,stream.phpand amodel.pageline in English and Arabic.docs/copilot.mdwalks through the chat endpoint and the panel,docs/security.mdlists the copilot's guarantees, and the Boost guideline gains four lines.
Changed
TouchedHandler's second argument is nowActionDefinition | null. Handlers registered withonTouched()receivenullfor touches from a copilot row. Handlers that ignore the argument are unaffected.Refusal::detailsPayload()andRefusal::listingItems()are renamedgetDetails()andgetListing(), like PHP's own exception getters.sameOriginUrl()andapplyActionPart()accept only a string URL of the page's own origin over http or https, so ablob:URL, a non-string value, or ajavascript:ordata:URL on a page with an opaque origin is never kept as a link.- The actions manifest is version 2. A version-1 manifest is ignored, and the app scans, until
php artisan optimizeoractions:cacheruns again.
Fixed
- Discovery skips, with a warning, a class whose parent or trait, at any depth, uses a trait that is missing. Before, PHP older than 8.5 stopped when the scan loaded such a class.
0.1.0-alpha.1 - 2026-09-24
The first alpha. It installs only from the private repository, and the API can change before 0.1.0.
- Actions. One
Actionclass per operation, with an effect (Read,Write,DestructiveorExternal), a JSON schema for its input and output,authorize()andhandle(). Call it in-process withrun(), or through any surface it is exposed on. Every caller goes through the same pipeline: exposure, token abilities, tenant membership,authorize(), validation,handle(), and the output schema as an allowlist. - Exposure.
#[Expose]opens an action to the web, the CLI and laravel/ai agents.actions.exposure.jsonrecords what each action exposes, andactions:checkfails until a change to it is reviewed and recorded with--update. - Refusals.
Refusalsays no in your own words, optionally on a field, andtoValidationException()turns it into a field error in Livewire or a controller. - Web and API.
Actions::routes()mounts a POST route per action inside your own route groups (web, a Sanctumapi.group, a tenant group). JSON callers get the output or a 422 with{message, errors}, browser forms get errors and old input the way a form request does, and Precognition works. Generated routes require a signed-in user. - Tokens. Sanctum abilities per effect (
actions:read,actions:write,actions:destructive,actions:external). Grants are read from the guard that authenticated the request, and a credential the package cannot read gets no access. - Tenants. Actions scoped to a tenant bound by primary key and resolved by route key, with membership and scope contracts and a bridge to spatie/laravel-permission teams.
- Read guard. A Read cannot write through Laravel's database connection: a writing statement is refused before it runs, except on the tables your database cache, session and queue use and the ones you list.
- Agents. With laravel/ai 1.x, an agent that uses
InteractsWithActionsand#[UseToolset]gets its actions as tools. A model's arguments are cut to the schema it was offered, and keys named like passwords, secrets or tokens, route parameters and the tenant's key are never offered. - Console.
actions:run(with--as),actions:list,actions:check,actions:cache,actions:clear,actions:typescriptandmake:agentic-action. Actions are discovered underapp/by default, andphp artisan optimizecaches the manifest. - TypeScript.
actions:typescriptwrites a typed definition for each action's route. The npm client@agentic-actions/client, installed fromvendor/agentic-actions/laravel/js, has no dependencies (callAction(),onTouched(),uri()), plus/inertiato reload what a call touched and/reactforuseAction(). - Testing.
Actions::fake(),assertToolset()andassertAgentTools()for PHPUnit and Pest, and atoContainActionToolexpectation for Pest. - Languages. Sentences in English and Arabic.
- Laravel Boost. A guideline for AI coding assistants.