feat(desktop): show read tool args
This commit is contained in:
parent
5688c9fd61
commit
b75575884a
1 changed files with 4 additions and 0 deletions
|
|
@ -441,6 +441,9 @@ PART_MAPPING["reasoning"] = function ReasoningPartDisplay(props) {
|
||||||
ToolRegistry.register({
|
ToolRegistry.register({
|
||||||
name: "read",
|
name: "read",
|
||||||
render(props) {
|
render(props) {
|
||||||
|
const args: string[] = []
|
||||||
|
if (props.input.offset) args.push("offset=" + props.input.offset)
|
||||||
|
if (props.input.limit) args.push("limit=" + props.input.limit)
|
||||||
return (
|
return (
|
||||||
<BasicTool
|
<BasicTool
|
||||||
{...props}
|
{...props}
|
||||||
|
|
@ -448,6 +451,7 @@ ToolRegistry.register({
|
||||||
trigger={{
|
trigger={{
|
||||||
title: "Read",
|
title: "Read",
|
||||||
subtitle: props.input.filePath ? getFilename(props.input.filePath) : "",
|
subtitle: props.input.filePath ? getFilename(props.input.filePath) : "",
|
||||||
|
args,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue