Find the tools for the task. Bring back the result.
Code Mode lets a compatible agent discover app actions, read the inputs it needs and compose a workflow. Keep the connected accounts and available actions scoped to the job.
Find a relevant action
Search the configured app tools for the work at hand.
weavz_search({ query: "slack channels" })Discover, understand and compose.
Three MCP meta-tools give the agent a way to find and use the configured app actions as the task develops.
Find a relevant action
The agent searches the available integrations and tools for the current task. Workspace configuration still determines which apps and actions it can access.
Read the required inputs
The agent requests the action declarations it needs to understand fields and expected values. It can inspect a tool before using it instead of guessing an operation from its name.
Compose the useful work
The agent writes JavaScript to call the configured app aliases, combine results and return the answer. Connected credentials stay with the configured account path.
Explore assistant workflowsChoose the mode that fits the job.
Code Mode and Tool Mode serve different interaction patterns. The right choice depends on your client, the task and the tool surface you want to expose.
Tool Mode for a focused task
Expose a selected set of actions directly as MCP tools. This fits a narrow workflow where the useful operations are known ahead of time.
Code Mode for composed workflows
Use discovery, action declarations and code execution when the agent needs to combine app calls and transform their results. Check that the AI client supports the required MCP behavior.
Direct actions for a known operation
Use the REST API or SDK when your backend already knows which action to execute. Your product can combine direct calls and MCP according to the feature.
Explore the SDKsKeep the workflow’s boundaries clear.
Choose the workspace, end user and configured app aliases. Optional Advanced settings can adapt selected actions when the workflow needs them.
Choose the connected account
Use the intended workspace and customer identity for each operation. The account and provider permissions define the access available to that user.
Understand connectionsAdd optional approval rules
Under Advanced, choose an app and action that should pause for a reviewer. You can keep routine enabled actions available without an approval rule.
Configure optional reviewReuse useful defaults
Use optional Saved inputs under Advanced for a recurring destination or default. Lock a value when that specific workflow should enforce it.
Configure optional saved inputsDeveloper example: the three primary tools
Example calls from a compatible MCP client after configuring the team_slack alias. Read the returned declaration before executing an action.
weavz_search({ query: "slack channels" })
weavz_read_api({ aliases: ["team_slack"] })
weavz_execute({ code:
"return await weavz.team_slack.list_channels({})"
})Read the MCP setup guideChoose the setup that fits.
Use your own AI client, or build connections into your product. These are ways to use the same Weavz platform.
Code Mode MCP, in practical terms
Discover a small set of relevant actions, read their inputs, then execute through the workspace’s controls.
What are the three Code Mode tools?
weavz_search finds available integrations and actions, weavz_read_api reads typed action declarations, and weavz_execute runs code against the configured workspace aliases. Catalog access still depends on workspace configuration and authorization.
When should I use Tool Mode instead?
Use Tool Mode for a small, explicit selection of tools that your client should see individually. Use Code Mode for broader workspaces where on-demand discovery keeps the initial tool surface smaller.
Does Code Mode bypass approval policies?
No. Matching actions still go through approval rules. If execution requires approval, review the request and resume using its approval reference rather than starting a duplicate action.