Skip to main content

ToolOutput

Enum ToolOutput 

Source
pub enum ToolOutput {
Show 35 variants MergeRequests(Vec<MergeRequest>, Option<ResultMeta>), SingleMergeRequest(Box<MergeRequest>), Discussions(Vec<Discussion>, Option<ResultMeta>), Diffs(Vec<FileDiff>, Option<ResultMeta>), Issues(Vec<Issue>, Option<ResultMeta>), SingleIssue(Box<Issue>), Comments(Vec<Comment>, Option<ResultMeta>), Pipeline(Box<PipelineInfo>), JobLog(Box<JobLogOutput>), Statuses(Vec<IssueStatus>, Option<ResultMeta>), Users(Vec<User>, Option<ResultMeta>), MeetingNotes(Vec<MeetingNote>, Option<ResultMeta>), MeetingTranscript(Box<MeetingTranscript>), KnowledgeBaseSpaces(Vec<KbSpace>, Option<ResultMeta>), KnowledgeBasePages(Vec<KbPage>, Option<ResultMeta>), KnowledgeBasePageSummary(Box<KbPage>), KnowledgeBasePage(Box<KbPageContent>), Relations(Box<IssueRelations>), MessengerChats(Vec<MessengerChat>, Option<ResultMeta>), MessengerMessages(Vec<MessengerMessage>, Option<ResultMeta>), SingleMessage(Box<MessengerMessage>), AssetList { attachments: Vec<Value>, count: usize, capabilities: Value, }, AssetDownloaded { asset_id: String, size: usize, local_path: Option<String>, data: Option<String>, cached: bool, }, AssetUploaded { url: String, filename: String, size: usize, }, AssetDeleted { asset_id: String, message: String, }, Structures(Vec<Structure>, Option<ResultMeta>), ProjectVersions(Vec<ProjectVersion>, Option<ResultMeta>), SingleProjectVersion(Box<ProjectVersion>), Sprints(Vec<Sprint>, Option<ResultMeta>), CustomFields(Vec<CustomFieldDescriptor>, Option<ResultMeta>), StructureForest(Box<StructureForest>), StructureValues(Box<StructureValues>), StructureViews(Vec<StructureView>, Option<ResultMeta>), ForestModified(ForestModifyResult), Text(String),
}
Expand description

Typed result of tool execution.

Each variant carries structured data from the provider. The caller (MCP server, NAPI bridge, HTTP handler) decides how to format the output (pipeline text, JSON, etc.).

Variants§

§

MergeRequests(Vec<MergeRequest>, Option<ResultMeta>)

§

SingleMergeRequest(Box<MergeRequest>)

§

Discussions(Vec<Discussion>, Option<ResultMeta>)

MR/PR discussions with comments and code positions

§

Diffs(Vec<FileDiff>, Option<ResultMeta>)

§

Issues(Vec<Issue>, Option<ResultMeta>)

List of issues / tasks

§

SingleIssue(Box<Issue>)

Single issue / task

§

Comments(Vec<Comment>, Option<ResultMeta>)

§

Pipeline(Box<PipelineInfo>)

CI/CD pipeline status with jobs

§

JobLog(Box<JobLogOutput>)

§

Statuses(Vec<IssueStatus>, Option<ResultMeta>)

§

Users(Vec<User>, Option<ResultMeta>)

§

MeetingNotes(Vec<MeetingNote>, Option<ResultMeta>)

§

MeetingTranscript(Box<MeetingTranscript>)

Single meeting transcript with sentences

§

KnowledgeBaseSpaces(Vec<KbSpace>, Option<ResultMeta>)

§

KnowledgeBasePages(Vec<KbPage>, Option<ResultMeta>)

§

KnowledgeBasePageSummary(Box<KbPage>)

Single knowledge base page summary

§

KnowledgeBasePage(Box<KbPageContent>)

Single knowledge base page with content

§

Relations(Box<IssueRelations>)

Issue relations (parent, subtasks, linked issues)

§

MessengerChats(Vec<MessengerChat>, Option<ResultMeta>)

§

MessengerMessages(Vec<MessengerMessage>, Option<ResultMeta>)

§

SingleMessage(Box<MessengerMessage>)

Single sent message

§

AssetList

Fields

§attachments: Vec<Value>

Serialized attachment objects from the provider.

§count: usize

Number of attachments.

§capabilities: Value

Provider-reported asset capabilities.

§

AssetDownloaded

Asset downloaded (cached locally or base64)

Fields

§asset_id: String

Provider-specific asset identifier.

§size: usize
§local_path: Option<String>

Absolute path when cached locally.

§data: Option<String>

Base64-encoded content when no cache is available.

§cached: bool

Whether the result came from local cache.

§

AssetUploaded

Fields

§url: String

Provider-returned URL for the uploaded file.

§filename: String
§size: usize
§

AssetDeleted

Fields

§asset_id: String

Deleted asset identifier.

§message: String

Human-readable confirmation message.

§

Structures(Vec<Structure>, Option<ResultMeta>)

§

ProjectVersions(Vec<ProjectVersion>, Option<ResultMeta>)

List of project versions / fixVersion targets (Jira releases)

§

SingleProjectVersion(Box<ProjectVersion>)

Single project version (returned by upsert_project_version)

§

Sprints(Vec<Sprint>, Option<ResultMeta>)

Sprints visible on a Jira agile board (issue #198)

§

CustomFields(Vec<CustomFieldDescriptor>, Option<ResultMeta>)

Custom-field descriptors discovered on the issue tracker

§

StructureForest(Box<StructureForest>)

Structure forest (hierarchy tree)

§

StructureValues(Box<StructureValues>)

Structure column values

§

StructureViews(Vec<StructureView>, Option<ResultMeta>)

§

ForestModified(ForestModifyResult)

Forest modification result (add/move rows)

§

Text(String)

Plain text result (e.g., “Comment created successfully”)

Implementations§

Source§

impl ToolOutput

Source

pub fn item_count(&self) -> usize

Returns the number of items in collection outputs, or 1 for single items.

Source

pub fn type_name(&self) -> &'static str

Returns a human-readable type name for this output.

Source

pub fn result_meta(&self) -> Option<&ResultMeta>

Returns the result metadata (pagination + sort info) if present.

Trait Implementations§

Source§

impl Debug for ToolOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more