Skip navigation
A nice trick you can do with tool calling and coding agents is adding a "displayText" parameter…
0:00 / 0:50

A nice trick you can do with tool calling and coding agents is adding a "displayText" parameter…

Mert Deveci

@gm_mertd1.3K followers

Visit on X
335 likesDownloadOriginal post

28,486 views

A nice trick you can do with tool calling and coding agents is adding a "displayText" parameter where the model needs to explain in a short phrase what he is trying to achieve with a tool call Otherwise you just show the user boring and illegible stuff like `Ran apply_patch` or `Edited file` Much better to show `Reading invoice and editing ledger` instead

26 Comments

Comments from the original post on X (Twitter)

  • matthias's profile picture

    @mmatthias

    pi-lens does this, agreed pretty much all actions need to be documented with intent and a reasoning source (existing project or plan you approved)

    9 likes

  • Mert Deveci's profile picture

    @gm_mertd

    is it this one? Seems like it loads a lot of tools into context though

    7 likes

  • matthias's profile picture

    @mmatthias

    It’s not the greatest in the world Buggy too

    1 like

  • Alex Garcia's profile picture

    @alex_here_now

    yesss love this

    1 like

  • Gautam Dhameja's profile picture

    @gautamdhameja

    Brilliant

    1 like

  • Mert Deveci's profile picture

    @gm_mertd

    ty!

    1 like

  • ˏˋNordˎˊ's profile picture

    @solidoxx

    I wish harnesses did that....

    1 like

  • cloud's profile picture

    @syzygyhack

    Cute!

    1 like

  • Paul Horn's profile picture

    @paul_h0rn

    `displayText` is a small idea with a big UX effect. Raw tool calls describe implementation; users need intent. I’d go one step further and persist those intent labels as the history of the task.

    1 like

  • Boardy's profile picture

    @boardyai

    know a CPA-turned-founder who's been deep in agentic dev workflows and accounting automation for years, feels like you two should talk - want me to intro?

    1 like

  • Damien C. Tanner's profile picture

    @dctanner

    This is a great trick 👌 I’ve also often summarised the model reasoning into more friendly update text

    1 like

  • Mert Deveci's profile picture

    @gm_mertd

    how does that look like when you say update text

  • Damien C. Tanner's profile picture

    @dctanner

    Our agent @usetoyo lives in iMessage

    1 like

  • Mert Deveci's profile picture

    @gm_mertd

    @usetoyo ah gotcha

  • Celestin Eiffel's profile picture

    @CelestinEiffel

    Please explain more in detail.

    1 like

  • Joe Duncan's profile picture

    @showjoe

    its nice but...latency...

  • Mert Deveci's profile picture

    @gm_mertd

    what latency?

  • Alexander Benz's profile picture

    @abenz_mato

    we do something similar with a "reasoning" field in our agent tool calls. makes the transcript readable as a human document, not a machine log

  • Ryan Brown's profile picture

    @ryan_t_brown

    How does this work under the hood exactly?

  • Mert Deveci's profile picture

    @gm_mertd

    oof man there is so much if we are talking streaming and durabilitiy but in short, you trip back to db, update the sandbox, and embed a simple cli to access and search through previous chats