Agent query protocol
The web app asks its agent questions through one HTTP endpoint. It posts the question together with everything the agent may need to know about the user's dashboard, and the agent answers with a stream of server-sent events. When the agent needs something that only the browser has, such as the data of a widget or the result of a tool on one of the user's MCP servers, it ends the stream with a request for that thing. The browser fetches it and posts again, this time with the result appended to the conversation. One question can therefore take several requests, and this page describes all of them.
The built-in agent that ships with FINOS Workspace implements this protocol in agent/src/routes/query.ts and agent/src/protocol/. Any other agent can be connected if its descriptor names an endpoint that speaks it. The browser side is frontend/src/components/AI/hooks/useStreamResponse.tsx and useAiFetchRequestInit.tsx.
Sending a question
The browser sends POST /v1/query with a JSON body. The address comes from endpoints.query in the agent's descriptor. For the built-in agent the request also needs an agent token in the Authorization header, as Agent authentication describes.
| Header | Meaning |
|---|---|
Authorization | Bearer and the agent token. The agent requires it unless it runs with AGENT_AUTH=none. |
Content-Type | application/json. |
X-Trace-Id | The identifier of the chat. The web app sends its chat id on every request of the chat, and the agent files whatever it keeps for the chat under the user and this value. A request without it still works, but the agent cannot keep anything for the chat between requests, and it counts every request that ends in a tool result as a new question. |
The body has these fields. Only messages is required. The table is generated from the schema that the agent checks the body against, so its limits are the ones that the agent enforces.
messagesarray of objectrequired1 to 20,000 itemsThe conversation, oldest first. A message has the role human, ai or tool.
modelstringat most 200 charactersAccepted but not used. The agent reads the model from workspace_options.model.
widgetsobjectThe widgets that the agent may read, sorted into three tiers: primary, secondary and extra.
contextanyItems that the user attached, such as artifacts of earlier answers. A list has at most 500 items.
urlsarray of stringat most 8 itemsWeb addresses that appeared in the user's message. The agent fetches them for the model unless an administrator turned the web tools off.
timezonestringat most 100 charactersThe user's time zone, such as Europe/Paris.
workspace_stateanyWhere the user is: the current page, dashboard and tab, and the recent actions. The agent ignores a value that does not have this shape.
workspace_optionsobjectThe settings that the user picked from the features of the descriptor, as an object of names to booleans or strings. At most 100 keys.
skills_catalogarray of objectat most 500 itemsThe skills in the user's library.
plugin_artifactsarray of objectat most 100 itemsThe artifacts that the plugins of the organization offer the agent, each with the data it may fill in.
selected_skillsarray of objectat most 20 itemsSkills that the user forced with a slash command, or that the model selected. The user's own skills carry contentMarkdown.
toolsarray of objectat most 500 itemsThe tools of the MCP servers that the user connected, which the agent may ask the browser to run.
documentsarray of objectat most 50 itemsFiles sent inline. The agent accepts them but treats the field as deprecated, because the web app sends a file as a widget in widgets.primary instead. Each needs content_b64 or url.
The agent checks the body against a schema and answers 400 when it does not fit. The error names every problem, as in this reply to a message whose role is not one of the three:
{
"error": "Invalid request",
"details": [
{
"code": "invalid_value",
"values": ["human", "ai", "tool"],
"path": ["messages", 0, "role"],
"message": "Invalid option: expected one of \"human\"|\"ai\"|\"tool\""
}
]
}
Messages
A message is an object with a role.
| Role | Meaning |
|---|---|
human | A question or reply of the user. content is a string. |
ai | An earlier answer of the agent. content is a string. The web app rewrites the artifact and citation tags that its stored answers contain into the markers <|start_artifact_id|> … <|end_artifact_id|> and <|start_citation_id|> … <|end_citation_id|> around an id, and the agent does not interpret them. When the agent asked the browser for something, the web app records the request as an ai message whose content is the JSON text of function and input_arguments. |
tool | The browser's result for a request of the agent. It has the fields function, input_arguments, data and extra_state, which Function calls describes. |
The agent gives the model the current turn only: the user's last message and what has happened since. The model reads earlier messages with a tool of its own when it needs them, so a long chat does not make every request more expensive.
Widgets
Each widget object describes one source of data that the user can reach. A widget may carry fields that the table does not list, and the agent passes them on. The mcp_tool field is a link from the widget to an MCP tool, as MCP tool link describes.
uuidstringat most 500 charactersThe widget's identifier on the dashboard. A widget of the catalog that is not on the dashboard has none, and the agent identifies it by its widget_id.
originstringat most 500 charactersThe name of the backend that serves the widget.
widget_idstringat most 500 charactersThe widget's id in its backend.
namestringat most 2,000 charactersWhat the model reads to choose a widget.
descriptionstringat most 50,000 charactersWhat the model reads to choose a widget.
widget_typestring or nullThe kind of widget, for example markdown, html or iframe.
paramsarray of objectat most 1,000 itemsThe widget's parameters. Each has a name, a type, a description, a default_value, a current_value, a list of options and multi_select.
columnsarray of string or nullThe column names of the rows that a widget on the dashboard has loaded.
categorystringat most 500 charactersWhat the model reads to choose a widget.
sub_categorystringat most 500 charactersWhat the model reads to choose a widget.
sourcestring or nullat most 500 charactersFree-form details about the widget.
metadataobjectFree-form details about the widget. For a widget on the dashboard, it holds lastUpdated, the time of its last update in milliseconds since 1970.
mcp_toolobjectA link from the widget to an MCP tool.
3 nested properties
server_idstringrequiredat most 500 charactersThe id of the MCP server that has the tool.
tool_namestringrequiredat most 500 charactersThe name of the tool on that server.
argsobjectThe arguments that the tool receives, by name.
The tiers say how close a widget is to the user's question. primary holds the widgets that the user selected or mentioned, secondary holds the other widgets of the dashboard, and extra holds the rest of the catalog. The web app fills extra only when the descriptor has the feature widget-global-search.
The model finds a widget with its tool search_widgets. The tool splits the query into words and keeps the widgets whose name, description, category, sub-category or origin contains at least one of them. It lists at most 100 widgets, those that match more words first, and among widgets that match the same number of words, the nearer tier first. An empty query lists every widget, nearer tier first and then by name. Each result carries the widget's uuid, widget_id, origin, kind (data, note or display), widget_type, params and a location that is added_to_context, on_dashboard or connected, for the three tiers. The model passes a result's uuid to the tool that loads data, as Widget data for the agent describes.
Limits on the request
The agent refuses a body that is larger than AGENT_MAX_BODY_MB, which is 64 MB by default, with the status 413. The helper routes described in Agent HTTP API accept at most 8 MiB.
Context
An item of context has a name, an optional description and a data object with a list of items. An item that has no data but has a description becomes a text note for the model. Each entry of items has a content string and may have a data_format object whose parse_as names the kind of content. When parse_as is table or is missing and the content is JSON rows, the item becomes a table that the model can query with SQL under the name ctx_ followed by the item's name in lowercase letters, digits and underscores. Every other entry becomes a text note, cut to 8,000 characters, and that includes JSON rows whose parse_as is any other value. The browser sets parse_as to the type of the artifact that the user attached.
An example
This request is the first one of a chat on the dashboard from the first tutorial. The user selected no widget, so primary is empty, and the dashboard has the two widgets of the tutorial. The tools list is cut to one of the three tools of the agent's own MCP server, and its schema is shortened.
{
"messages": [ { "role": "human", "content": "Which region has the highest revenue?" } ],
"widgets": {
"primary": [],
"secondary": [
{
"origin": "Sales demo",
"widget_id": "revenue_by_region",
"uuid": "1ebf877c-223a-4fd6-9e08-a94c8c5d7131",
"name": "Revenue by region",
"description": "Revenue in millions of dollars for each sales region in one year",
"widget_type": "markdown",
"category": "sales",
"params": [
{ "name": "year", "type": "number", "description": "", "default_value": 2025, "current_value": "2024", "options": [], "multi_select": false }
],
"metadata": { "lastUpdated": 1793050534955 }
},
{
"origin": "Sales demo",
"widget_id": "sales_notes",
"uuid": "d73fad61-02e2-4138-b8ef-b2ad1508d91d",
"name": "Sales notes",
"description": "Notes from the sales team",
"widget_type": "markdown",
"category": "sales",
"params": [],
"metadata": { "lastUpdated": 1793050534956 }
}
],
"extra": []
},
"context": [],
"urls": [],
"timezone": "Europe/Paris",
"workspace_state": {
"action_history": [],
"current_dashboard_uuid": "3b7edc8b-9c6c-4624-96b0-1acb19526dbb",
"current_dashboard_info": {
"id": "3b7edc8b-9c6c-4624-96b0-1acb19526dbb",
"name": "Sales overview",
"current_tab_id": "__no_tab__",
"current_tab_name": "__no_tab__",
"tabs": [
{
"tab_id": "__no_tab__",
"tab_name": "__no_tab__",
"widgets": [
{ "widget_uuid": "1ebf877c-223a-4fd6-9e08-a94c8c5d7131", "name": "Revenue by region" },
{ "widget_uuid": "d73fad61-02e2-4138-b8ef-b2ad1508d91d", "name": "Sales notes" }
],
"layout": [
{ "widget_uuid": "1ebf877c-223a-4fd6-9e08-a94c8c5d7131", "x": 0, "y": 0, "w": 40, "h": 10, "min_w": 8, "min_h": 4 },
{ "widget_uuid": "d73fad61-02e2-4138-b8ef-b2ad1508d91d", "x": 0, "y": 10, "w": 40, "h": 10, "min_w": 8, "min_h": 4 }
]
}
],
"groups": []
},
"current_page_context": "dashboard"
},
"workspace_options": { "widget-global-search": true, "prompt-suggestions": true, "model": "<provider>:<model>" },
"tools": [
{
"server_id": "agent-tools",
"name": "The agent Tools_web_search",
"tool_name": "web_search",
"description": "Search the web (DuckDuckGo) for current information. ...",
"url": "http://agent-mcp:8787/mcp",
"input_schema": { "type": "object", "properties": { "query": { "type": "string" } }, "required": ["query"] }
}
]
}
The dashboard has no tabs, so its widgets sit in a tab whose id and name are __no_tab__. A tool has the server_id of its MCP server, the name that the agent uses for it, which is the server's name and the tool's name joined by an underscore, the tool_name that the server knows, the url of the server and the tool's input_schema.
When the model asks for the widget's data, the response ends with a function call, and the browser posts the conversation again. The second request has the same widgets, context, workspace_state, workspace_options and tools. It leaves out urls and timezone, because the time zone now travels in the extra_state that the agent returned. Its messages are the question, the record of the call and the result:
[
{ "role": "human", "content": "Which region has the highest revenue?" },
{
"role": "ai",
"content": "{\"function\":\"get_widget_data\",\"input_arguments\":{\"data_sources\":[{\"widget_uuid\":\"1ebf877c-223a-4fd6-9e08-a94c8c5d7131\",\"origin\":\"Sales demo\",\"id\":\"revenue_by_region\",\"input_args\":{\"year\":\"2024\"}}]}}"
},
{
"role": "tool",
"function": "get_widget_data",
"input_arguments": {
"data_sources": [
{ "widget_uuid": "1ebf877c-223a-4fd6-9e08-a94c8c5d7131", "origin": "Sales demo", "id": "revenue_by_region", "input_args": { "year": "2024" } }
]
},
"data": [
{
"items": [
{
"content": "| Region | Revenue ($M) |\n|---|---|\n| East | 110 |\n| West | 90 |\n| North | 70 |",
"data_format": { "data_type": "object", "parse_as": "text" }
}
],
"extra_citations": []
}
],
"extra_state": {
"copilot_function_call_arguments": { "widget_queries": [ { "widget_uuid": "1ebf877c-223a-4fd6-9e08-a94c8c5d7131" } ] },
"timezone": "Europe/Paris",
"turn_usage": { "inputTokens": 10, "cachedInputTokens": 0, "cacheWriteTokens": 0, "outputTokens": 5, "totalTokens": 15, "postCount": 1 }
}
}
]
The input_args hold the parameter value that the widget showed, "2024", as the dashboard stored it. Widget data for the agent explains how the browser got data.
The response
The answer is Content-Type: text/event-stream. Every event is two lines and an empty line, in the standard server-sent events form:
event: copilotMessageChunk
data: {"delta":"Hello from the stand-in model. "}
The response carries the headers X-Trace-Id, which repeats the request's value or holds a new identifier when the request had none, and X-Completion-Id, which is new for every response. The agent lists both in Access-Control-Expose-Headers, so a script in the browser can read them.
copilotStatusUpdateA step of the agent's work.
copilotMessageChunkText of the answer.
copilotMessageArtifactA table, an HTML document or an app that belongs to the answer.
copilotCitationCollectionThe sources of the answer.
copilotPromptSuggestionsFollow-up questions. The agent sends them only when workspace_options has the key prompt-suggestions set to a true value.
copilotFunctionCallThe agent needs the browser to do something. It is the last event of the response.
Status updates
A status update reports what the agent is doing, so that the user sees progress before the answer arrives. eventType is INFO, WARNING or ERROR. group is reasoning for the agent's own steps and planning for a plan that the model shows before a multi-step job. details is a list of objects that the interface shows, and artifacts lists artifacts that the step produced, such as the table of rows that a widget returned. tool_call holds the tool_name and input of the call that the step reports. The web app does not show an update whose hidden is true, and it removes the last function call and its result from the chat when an update has eventType ERROR.
Text that the model writes while it also calls a tool is a reasoning step and not part of the answer, so it arrives as a status update:
event: copilotStatusUpdate
data: {"eventType":"INFO","message":"Let me look at the sales data first, one moment.","group":"reasoning"}
The answer
The agent holds back the text of a model step until the step ends. When the step ends with no tool call, the text is the answer, and the agent sends it in one copilotMessageChunk, however long it is. It never sends the answer token by token. A client should still append the delta of every chunk it receives, in order, because another agent may send an answer in pieces. The agent removes from the answer the markers that models sometimes write, such as artifact and citation tags, and it turns image syntax into plain links, so that an answer cannot make the browser load an address that a document chose.
The web app puts an artifact in the answer at the point where the event arrives and a citation after the text that it follows. A typical complete response to a question that loaded one widget looks like this, with the artifact's HTML left out:
event: copilotStatusUpdate
data: {"eventType":"INFO","message":"Loaded \"Sales by region\" data.","group":"reasoning","artifacts":[{"type":"html","name":"Sales by region", ...}]}
event: copilotMessageChunk
data: {"delta":"The East region leads. "}
event: copilotCitationCollection
data: {"citations":[{"id":"a70d6d3e-c242-5fd5-bbd5-89c9a32a83a7","source_info":{"type":"widget","origin":"demo","widget_id":"sales","name":"Sales by region","metadata":{"input_args":{"year":2025},"widget_uuid":"w-sales"},"citable":true},"details":[{"Source type":"widget","Origin":"demo","Data source":"Sales by region","year":2025}],"signature":""}]}
event: copilotPromptSuggestions
data: {"suggestions":["Show it as a chart"]}
Artifacts
An artifact is an object with a type, a uuid, a name and a description. An html artifact also has a content string that holds a complete HTML document, which the web app shows in a sandboxed frame. An app artifact has an app object, which is a definition in the format of apps.json, and widget_refs, which lists the widgets that the app uses. A plugin artifact has a plugin object with the id of the plugin and the id of the widget, a data object with the data that the agent filled in, and an optional config object with the settings of the card. The agent turns a table of rows into an html artifact that is styled for the light and the dark theme.
Citations
A citation has an id, a source_info, a list of details and a signature, which the agent leaves empty. The source_info has a type of widget, web or file, a name and citable: true. A widget citation also carries the widget's identifiers and the arguments that fetched its data, which lets the web app open the source. A web citation has a details entry with the link and the title of the page. A citation of a page of a document names the file and the page in details, for example [{"Filename": "report.pdf", "Page": 4}].
Function calls
A copilotFunctionCall event ends the response. function names what the browser must do, input_arguments holds its arguments, and extra_state holds state that the agent wants back. The browser does the work and posts the same conversation again with two messages added: an ai message that records the call, and a tool message that holds the result.
{
"role": "tool",
"function": "get_widget_data",
"input_arguments": { "data_sources": [ { "widget_uuid": "w-sales", "origin": "demo", "id": "sales", "input_args": { "year": 2025 } } ] },
"data": [ { "items": [ { "content": "[{\"region\":\"East\",\"revenue\":120}]", "data_format": { "data_type": "json" } } ] } ],
"extra_state": { "copilot_function_call_arguments": { "widget_queries": [ { "widget_uuid": "w-sales" } ] } }
}
The function names are these:
function | What the browser does | Fields of input_arguments | Content of data |
|---|---|---|---|
get_widget_data | Fetches the data of widgets. | data_sources, a list of widget_uuid, origin, id and input_args. | One entry for each data source, in order. Each entry has items, and each item has content, a string, or url, and a data_format with the data_type and for files the filename, or the entry is an error with an error_type and a content. Widget data for the agent describes them. |
execute_agent_tool | Runs a tool of an MCP server. For the server workspace it runs a FINOS Workspace tool in the tab. | server_id, tool_name, which is the name that the tool has in the request's tools, and parameters. | The result of the tool, in the form Tool results describes. |
get_skill_content | Looks up a skill in the user's library. | slug and optionally reason. | A list with one object. It is {"status": "success", "data": {"skill": {...}}} with the skill's slug, description and contentMarkdown, or {"status": "error", "message": ...} when the library has no such skill. |
The agent's own commands for working with the FINOS Workspace are the other functions, and they are listed after this section. Each has a list of results in data, each with a status and a message.
When the browser cannot do what a call asks for, it puts an object in data in place of the result, with an error_type, which is not_found, gateway_error or unexpected_error, and a content that holds the message. For a call that has several data sources or parameter queries, the error replaces only the entry of the source that failed.
The agent's own commands for changing a dashboard, listed below, are offered to the model only when the request carries none of the FINOS Workspace's tools. When the request has the tools of the server workspace, the model changes the dashboard with those tools instead, and the agent sends them as execute_agent_tool calls. The web app adds the FINOS Workspace tools to tools, under the names Workspace_ and the tool's name, whenever the agent has the feature mcp-tools and the user's roles allow them. The roles that a new organization starts with do not allow them, so in a fresh deployment tools holds only the tools of the agent's own MCP server.
For a get_widget_data result the agent reads content as text, fetches a url itself, and decides what an item is from data_format.data_type. Widget data for the agent describes the whole read, from the model's tool call to the events that the user sees.
Several calls in one step
The browser runs one function call at a time and posts again after each. When the model calls several of the FINOS Workspace's tools or dashboard commands in one step, the agent emits the first and records the others in extra_state, in pending_workspace_calls or pending_bridge_calls. On the next request it emits the next call straight away, without asking the model, so one tool result never leaves the others behind. The final request, which carries the last result, goes to the model.
Extra state
The agent chooses the content of extra_state, and the browser stores it with the call and returns it unchanged in the tool message. Because the state passes through the browser, an agent has to treat it as input that a user could have edited. The agent reads only the keys below, checks the size and the type of each, and ignores a value that does not fit.
copilot_function_call_argumentsThe widgets that the call concerns, as widget_queries with a widget_uuid each. The browser reads it to know which widgets an earlier call belonged to.
intermediate_citationsThe citations that the turn has collected so far.
document_hitsThe pages of documents that a search returned, which the agent cites when the answer names them.
documents_shippedThe documents that the agent has already sent to the search tools, so that each is sent once.
loaded_skill_slugsThe skills that the model has loaded.
loaded_tool_groupsThe groups of tools that the model has loaded.
pending_bridge_callsCalls of the agent's own bridge commands that the model asked for in one step and the agent has not yet emitted.
pending_workspace_callsCalls of the Workspace's tools that the model asked for in one step and the agent has not yet emitted.
traceparentThe trace context of the turn's first request, so that all requests of a turn share one trace.
turn_usageThe tokens that the turn has used, so that the usage the agent reports to the Workspace API covers the whole turn.
timezoneThe time zone of the turn.
Tool groups
A model that is given every tool in full pays for every definition on every call, so the agent gives it the core tools search_widgets, get_widget_data, get_skill_content, recall_conversation, suggest_followups and load_tools at every step and puts the other tools into groups. The system prompt names each group in one line, and the model loads a group with its tool load_tools when it needs it. The groups that the model has loaded travel in extra_state.loaded_tool_groups. These are the groups:
sqlloaded when the model asks with load_toolsquery the tables you have loaded and show results as table artifacts
dashboardloaded when the model asks with load_toolschange the user's dashboard: add, update or remove widgets, edit tabs and widget parameters
workspacealways loadedlook at and change the user's FINOS Workspace: find and add widgets, update a widget's parameters, edit tabs, navigate
appsloaded when the model asks with load_toolsassemble connected widgets into a multi-tab dashboard app the user can open or save
renderloaded when the model asks with load_toolsdraw one-off HTML/SVG (also charts) or turn pasted text into a table
componentsloaded when the model asks with load_toolsshow a plugin component in the chat, filled with your data
planningloaded when the model asks with load_toolsshow a short plan before a multi-step task, or sharpen a vague question
documentsloaded when the model asks with load_toolssearch a loaded PDF/DOCX/TXT/MD/HTML by question, with pages
webloaded when the model asks with load_toolssearch the web, or read a web page
The agent's own commands
These are the functions that the agent emits for itself, one for each command in agent/src/protocol/bridge-commands.ts. Their arguments come from the schema of each command.
get_workspace_snapshot
Request a fresh FINOS Workspace snapshot from the connected browser.
get_workspace_snapshotRequest a fresh FINOS Workspace snapshot from the connected browser. Call first when you need current dashboard state, dashboard identifiers, or skill identifiers. Use list_available_widgets, get_widget_schema, and manage_dashboard for deeper follow-up inspection.
Arguments
No fields.
list_available_widgets
List widgets available to the current FINOS Workspace session.
list_available_widgetsList widgets available to the current FINOS Workspace session. Returns deterministic widget identities for later get_widget_schema and create_widget calls. origin matches the friendly catalog label exactly; backend_id is optional and must be an exact backend UUID from manage_backends. Without filters the entire catalog is returned (hundreds of widgets) — prefer a filter when you know the source. Generative-only note widgets like rich_note are excluded; use add_generative_widget for those.
Arguments
originstringFriendly catalog label (e.g. 'Options Activity Monitor'). Matches exactly.
backend_idstringOptional backend UUID returned by manage_backends.
get_widget_schema
Fetch the exact schema for one available widget.
get_widget_schemaFetch the exact schema for one available widget. Returns deterministic params and UI inputs to use in subsequent create_widget / update_widget calls. Requires origin and widget_id from list_available_widgets — caller must select before calling.
Arguments
originstringrequiredat least 1 charactersFriendly catalog label from list_available_widgets.
widget_idstringrequiredat least 1 charactersWidget id from list_available_widgets.
get_params_options
Fetch parameter options for one or more widget input queries.
get_params_optionsFetch parameter options for one or more widget input queries. Use only after get_widget_schema marks a param with requires_options_lookup=true.
Arguments
param_options_queriesarray of objectrequiredOne entry per param to resolve. Use only after get_widget_schema marks the param with requires_options_lookup=true.
4 nested properties
originstringrequiredThe origin of the widget.
widget_idstringrequiredThe widget type id.
param_namestringrequiredThe name of the parameter to resolve.
data_argsobjectThe values that the lookup needs.
read_widget
Read one widget from the active dashboard.
read_widgetRead one widget from the active dashboard. widget_uuid is the canonical instance identifier; widget_id is a fallback when only the type is known.
Arguments
widget_uuidstringCanonical instance identifier from a workspace snapshot. Preferred over widget_id.
widget_idstringFallback widget type identifier when uuid is unknown.
dashboard_idstringTarget dashboard UUID. Omit to target the current FINOS Workspace route.
add_widget_to_dashboard
Create one widget on a target dashboard.
add_widget_to_dashboardCreate one widget on a target dashboard. Requires origin and widget_id. Omit dashboard_id for the current dashboard. Creates on the current tab; navigate_workspace to the desired tab first for tab-scoped placement. Use list_available_widgets and get_widget_schema when you need catalog identities or config params. Do not use this for rich_note; use add_generative_widget with widget_type='note'.
Arguments
originstringrequiredat least 1 charactersFriendly catalog label returned by list_available_widgets. Required.
widget_idstringrequiredat least 1 charactersWidget id from list_available_widgets. Required.
dashboard_idstringTarget dashboard UUID. Omit to target the current FINOS Workspace route.
configobjectWidget config split into data_args (data inputs) and ui_args (UI inputs). Layout fields belong on update_dashboard_layout, not here.
2 nested properties
data_argsobject or nullThe values of the widget's data parameters.
ui_argsobject or nullThe values of the widget's interface settings.
update_widget_in_dashboard
Update one widget's config on a target dashboard.
update_widget_in_dashboardUpdate one widget's config on a target dashboard. Handles 'update/set/change <param> to <value>' requests; the user may name a target widget by display name. Call only after identifying the target widget instances and confirming they expose the parameter being changed. Do not guess enum/dropdown values; call get_widget_schema and get_params_options when needed, then pass option values, not labels. For plain string values, preserve the user's literal casing unless schema/options require otherwise. Layout fields (x/y/w/h/grid_data/inner_tab/etc.) are rejected — use update_dashboard_layout for those.
Arguments
widget_uuidstringCanonical widget instance identifier from a workspace snapshot.
widget_idstringFallback widget type identifier when uuid is unknown.
dashboard_idstringTarget dashboard UUID. Omit to target the current FINOS Workspace route.
configobjectWidget config split into data_args (data inputs) and ui_args (UI inputs). Layout fields belong on update_dashboard_layout, not here.
2 nested properties
data_argsobject or nullThe values of the widget's data parameters.
ui_argsobject or nullThe values of the widget's interface settings.
delete_widget
Delete a FINOS Workspace widget from a dashboard.
delete_widgetDelete a FINOS Workspace widget from a dashboard. Provide widget_uuid (preferred) or widget_id. dashboard_id defaults to the current route.
Arguments
widget_uuidstringCanonical instance identifier from a workspace snapshot.
widget_idstringFallback widget type identifier when uuid is unknown.
dashboard_idstringTarget dashboard UUID. Omit to target the current FINOS Workspace route.
manage_dashboard
Create, read, or update one FINOS Workspace dashboard.
manage_dashboardCreate, read, or update one FINOS Workspace dashboard. create requires name. read uses current route if dashboard_id omitted. update requires dashboard_id and name.
Arguments
operation"create" | "read" | "update"requiredOperation to perform on the dashboard.
dashboard_idstringDashboard UUID. Omit on read to target the current FINOS Workspace route. Required for update.
namestringDashboard display name. Required for create and update.
activatebooleanOn create, whether to activate the new dashboard route. Defaults true.
update_dashboard_layout
Move or resize one widget on the active dashboard.
update_dashboard_layoutMove or resize one widget on the active dashboard. Requires x/y/w/h grid coordinates. Optional min_w/min_h/max_w/max_h size constraints.
Arguments
xnumberrequiredGrid column position (0-based).
ynumberrequiredGrid row position (0-based).
wnumberrequiredGrid width. 40 = full row.
hnumberrequiredGrid height in rows.
widget_uuidstringCanonical widget instance identifier from a workspace snapshot.
widget_idstringFallback widget type identifier when uuid is unknown.
dashboard_idstringTarget dashboard UUID. Omit to target the current FINOS Workspace route.
tab_idstringInner tab id to place the widget on. Omit to keep current tab.
min_wnumberMinimum width.
min_hnumberMinimum height.
max_wnumberMaximum width.
max_hnumberMaximum height.
manage_navigation_bar
Create or mutate the FINOS Workspace navigation bar (tabs).
manage_navigation_barCreate or mutate the FINOS Workspace navigation bar (tabs). create / add_tabs / remove_tabs use tabs:[{name}]. rename_tabs uses rename_map:{oldId:newName}. tab_id is generated as the slug of name; navigate to that slug after add_tabs before placing content.
Arguments
operation"create" | "add_tabs" | "remove_tabs" | "rename_tabs"requiredOperation: create | add_tabs | remove_tabs | rename_tabs.
dashboard_idstringDashboard UUID. Omit to target the current FINOS Workspace route.
tabsarray of objectTab objects, e.g. [{name:'Quarterly Review'}]. Required for create, add_tabs, remove_tabs. Do not pass tab_id; it is generated as the slug of name.
1 nested property
namestringrequiredThe name of the tab.
rename_mapobjectMap of {oldTabId: newName} for rename_tabs operation.
add_generative_widget
Create a generative widget (note or html) with inline content on a dashboard.
add_generative_widgetCreate a generative widget (note or html) with inline content on a dashboard. The FINOS Workspace has no table or chart widget: draw a table or chart as an html widget (follow the html-table / html-chart skills).
Arguments
widget_type"note" | "html"requiredGenerative widget kind: a markdown note or an HTML widget (tables and charts are HTML).
dashboard_idstringTarget dashboard UUID. Omit to target the current FINOS Workspace route.
datastring or nullWidget content as a plain string: markdown for a note, an HTML document for html.
namestringWidget display name.
descriptionstringWidget short description.
inner_tabstringExisting inner tab id to place the widget on. Does NOT create a tab.
assign_tasks_to_agents
Assign tasks to configured external FINOS Workspace agents.
assign_tasks_to_agentsAssign tasks to configured external FINOS Workspace agents. task_requests items shaped like {id, description, assigned_holder_url, assigned_agent_id}.
Arguments
task_requestsarray of objectrequiredTasks shaped like {id, description, assigned_holder_url, assigned_agent_id}.
4 nested properties
idstringrequiredThe id of the task.
descriptionstringrequiredWhat the agent has to do.
assigned_holder_urlstringThe URL of the agent's holder.
assigned_agent_idstringThe id of the agent.
navigate_workspace
Navigate the FINOS Workspace browser to an existing dashboard or inner tab.
navigate_workspaceNavigate the FINOS Workspace browser to an existing dashboard or inner tab. operation='dashboard' requires dashboard_id; operation='tab' requires tab_id.
Arguments
operation"dashboard" | "tab"requiredNavigation target: 'dashboard' (full route) or 'tab' (inner tab).
dashboard_idstringDashboard UUID. Required when operation='dashboard'.
tab_idstringTab id (slug-form, e.g. 'quarterly-review'). Required when operation='tab'.
manage_backends
Manage FINOS Workspace data backends (the connections that power widgets).
manage_backendsManage FINOS Workspace data backends (the connections that power widgets). list / add / update / refresh / remove. add requires name and url. update/refresh/remove require backend_id.
Arguments
operation"list" | "add" | "update" | "refresh" | "remove"requiredOperation to perform on backends.
backend_idstringBackend UUID. Required for update/refresh/remove.
namestringBackend display name.
urlstringBackend base URL.
endpoint_headersarray of objectEndpoint headers. location is 'headers' (default) or 'query'.
3 nested properties
keystringrequiredThe name of the header or of the query parameter.
valuestringrequiredThe value that the backend's endpoints receive.
location"headers" | "query"Whether it goes in the headers or in the query. The default is headers.
validate_widgetsbooleanWhether to surface a warning if widgets fail to load. Defaults true on add.
manage_apps
List, read, or instantiate apps from a FINOS Workspace data backend.
manage_appsList, read, or instantiate apps from a FINOS Workspace data backend. Requires backend_id. read/instantiate require app_name or template_id. instantiate creates a fresh dashboard from the app template.
Arguments
operation"list" | "read" | "instantiate"requiredOperation: list | read | instantiate.
backend_idstringrequiredBackend UUID. Required. Use manage_backends operation='list' to discover.
app_namestringApp display name. Provide app_name or template_id for read/instantiate.
template_idstringTemplate UUID. Provide app_name or template_id for read/instantiate.
dashboard_namestringOverride dashboard name on instantiate (defaults to app's name).
activatebooleanOn instantiate, route the browser to the new dashboard. Defaults true.
How a turn is counted
A question and its function calls make a turn. A request whose last message is a tool result continues a turn only when the agent knows that a turn of that chat is under way, which it remembers for 600 seconds. Every other request is a new question, and the agent reports it to the FINOS Workspace API as one use of the user's daily limit. A turn may take at most AGENT_MAX_TURN_REQUESTS requests, which is 60 by default. Past that limit the agent answers with a notice and stops. The agent reports the tokens that a request used to the FINOS Workspace API when the request ends.
Refusals and errors
Before the stream starts, the agent can refuse a request with an ordinary HTTP status and a JSON body that has an error field.
| Status | error | Cause |
|---|---|---|
| 400 | Invalid JSON or Invalid request | The body is not JSON, or it does not fit the schema. Each refusal counts against the user's allowance of invalid requests. |
| 401 | Not signed in | The token is missing or not valid. The response has WWW-Authenticate: Bearer. |
| 413 | The request is too large | The body exceeds AGENT_MAX_BODY_MB. |
| 429 | Too many invalid requests. Try again in a minute. | The user sent more than AGENT_INVALID_REQUESTS_PER_MINUTE requests that were not questions. The response has Retry-After: 60. |
| 429 | Too many of your queries are running. Wait for one to finish. | The user already has AGENT_MAX_CONCURRENT_QUERIES queries in progress. |
| 503 | The agent is busy. Try again in a moment. | The agent already runs AGENT_MAX_TOTAL_QUERIES queries. The response has Retry-After: 5. |
| 503 | The FINOS Workspace API is not available | The agent needs the API to check the user and cannot reach it. |
| 503 | The agent is busy signing users in. Try again in a moment. | Too many sign-in checks are waiting for the API. The response has Retry-After: 1. |
Some refusals depend on the user's rights and are therefore sent as an ordinary answer, with the status 200 and one copilotMessageChunk, so that the user reads them in the chat. They are the message of the API when the user has reached the usage limit, The model ... is not available here. when workspace_options.model names a model that this deployment does not offer, Your role does not allow the model ... when a role forbids it, and a notice that the question needed more steps than a question may take. When no model is configured at all, the response holds a copilotStatusUpdate of type ERROR and a copilotMessageChunk with the same message. A failure after the stream has started is reported as a copilotStatusUpdate of type ERROR, and the stream then ends.