Metaphor connects to a Nagent workspace with an API key. Once it is connected, agents can call 1 Metaphor action: "Get document contents by IDs". Nothing is enabled on connect: each action is allowed one at a time, and an action with side effects runs or waits for a person according to the agent's level.
Every operation an agent can call against Metaphor, with input parameters and output schema.
METAPHOR_GET_CONTENTSTool to retrieve parsed HTML/text contents and metadata for documents by their IDs." Use when you need to fetch the full text and metadata of multiple documents at once.
Input parameters
Character index to end returned text (exclusive). Must be >= 0.
List of Metaphor IDs or URLs to fetch content for. Must contain between 1 and 1000 items.
Character index to start returned text (inclusive). Must be >= 0.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
Agents can call 1 Metaphor action on Nagent: "Get document contents by IDs". Get document contents by IDs: Retrieve parsed HTML/text contents and metadata for documents by their IDs." Use when you need to fetch the full text and metadata of multiple documents at once. Each action is listed on this page with its input parameters and its output.
Metaphor connects with an API key, under your workspace's own connection. Nothing is enabled on connect: each action is allowed one at a time and can be scoped to the agents that need it.
Get document contents by IDs takes 1 required input: contents. It also takes 2 optional inputs: endChar and startChar. It returns data, error and successful.