vp-copy-to-object

vp-copy-to-object is a command for coding agents from Ganbin/4d-development-skill. It costs 0 tokens per session (736 once invoked), scanned A, original, MIT.

A command that copies the values, formatting, and formulas from a spreadsheet cell range into an object. A range is one cell or a group of cells.

In plain words
What is it for?
Use it to copy spreadsheet values, formatting, formulas, or combinations of these from a range, while choosing whether the copied data remains afterward.
Why use it?
It lets another part of a program receive spreadsheet data in a structured object, with options to copy all data or selected parts.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ganbin/4d-development-skill/vp-copy-to-object
Clone the repo
git clone --depth 1 https://github.com/Ganbin/4d-development-skill

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vp-copy-to-object

README.md
[![agentmods](https://agentmods.dev/badge/commands/ganbin/4d-development-skill/vp-copy-to-object.svg)](https://agentmods.dev/commands/ganbin/4d-development-skill/vp-copy-to-object)
Your own site
<a href="https://agentmods.dev/commands/ganbin/4d-development-skill/vp-copy-to-object"><img src="https://agentmods.dev/badge/commands/ganbin/4d-development-skill/vp-copy-to-object.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00736
Opus 5 $0.00000 $0.00368
Sonnet 5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00074

Measured 5d ago against content hash 82e788e33adc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vp-copy-to-object scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/ViewPro/commands/vp-copy-to-object.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Release Changes
19 R4 Added

VP Copy to object ( rangeObj : Object {; options : Object} ) : Object

Parameter Type Description
rangeObj Object -> Range object
options Object -> Additional options
Result Object <- Object returned. Contains the copied data

Description

The VP Copy to object command copies the contents, style and formulas from rangeObj to an object.

In rangeObj, pass the cell range with the values, formatting, and formulas to copy. If rangeObj is a combined range, only the first one is used.

You can pass an optional options parameter with the following properties:

Property Type Description
copy Boolean True (default) to keep the copied values, formatting and formulas after the command executes. False to remove them.
copyOptions Integer Specifies what is copied or moved. Possible values: ValueDescriptionvk clipboard options all (default)Copies all data objects, including values, formatting, and formulas.vk clipboard options formattingCopies only the formatting.vk clipboard options formulasCopies only the formulas.vk clipboard options formulas and formattingCopies the formulas and formatting.vk clipboard options valuesCopies only the values.vk clipboard options value and formattingCopies the values and formatting.

The paste options defined in the workbook options are taken into account.

The command returns an object that contains the copied data.

Example

This code sample first stores the contents, values, formatting and formulas from a range to an object, and then pastes them in another range:

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 68 lines · 0 tokens per session scan A 82e788e33adc

Subscribe to this mod's changes

vp-copy-to-object is a command published in the GitHub repository Ganbin/4d-development-skill (9 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 736 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.